Provides buffered I/O for streams with separate read and write buffers.
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.
use bufstream::BufStream;
Wrap a TcpStream with BufStream for buffered reading and writing.
use bufstream::BufStream;
use std::io::{BufRead, Write};
let stream = std::net::TcpStream::connect("127.0.0.1:8080").unwrap();
let mut buf_stream = BufStream::new(stream);
buf_stream.write_all(b"hello").unwrap();
let mut line = String::new();
buf_stream.read_line(&mut line).unwrap();
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.