basic-text 0.19.1

Basic Text strings and I/O streams
Documentation
1
2
3
4
5
6
7
8
9
use std::io::{copy, stdin, stdout, Write};

fn main() -> anyhow::Result<()> {
    let mut reader = stdin();
    let mut writer = stdout();
    copy(&mut reader, &mut writer)?;
    writer.flush()?;
    Ok(())
}