Registry / utility / buf-read-ext

buf-read-ext

JSON →
library0.4.0rscratesunverified

Trait extending BufRead with stream_until_token() for token-based reading.

# Cargo.toml [dependencies] buf-read-ext = "0.4.0"
INSTALL
IMPORT
SIG · BUF-READ-EXT
B
buf-read-ext
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BufReadExt
use buf_read_ext::BufReadExt;

Read until a token using stream_until_token

use buf_read_ext::BufReadExt; use std::io::BufReader; fn main() { let data = b"hello\nworld"; let mut reader = BufReader::new(&data[..]); if let Ok(Some(line)) = reader.stream_until_token(b"\n") { println!("{}", String::from_utf8_lossy(&line)); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
buf-read-ext — cargo add buf-read-ext · libregistry