in2qr/src/main.rs

13 lines
288 B
Rust
Raw Normal View History

2020-09-26 13:28:44 -04:00
use std::io::prelude::*;
fn main() -> Result<(), Box<std::error::Error>> {
let stdin = std::io::stdin();
let mut stdin = stdin.lock();
let mut buffer = Vec::new();
// read the whole file
stdin.read_to_end(&mut buffer)?;
qr2term::print_qr(&buffer)?;
Ok(())
}