in2qr/src/main.rs

13 lines
292 B
Rust
Raw Normal View History

2020-09-26 13:28:44 -04:00
use std::io::prelude::*;
2020-09-26 15:06:03 -04:00
fn main() -> Result<(), Box<dyn std::error::Error>> {
2020-09-26 13:28:44 -04:00
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(())
}