io-streams 0.16.3

Unbuffered and unlocked I/O streams
Documentation
1
2
3
4
5
6
7
8
9
use io_streams::{StreamReader, StreamWriter};
use std::io::copy;

fn main() -> anyhow::Result<()> {
    let mut input = StreamReader::stdin()?;
    let mut output = StreamWriter::stdout()?;
    copy(&mut input, &mut output)?;
    Ok(())
}