use std::{ error::Error, io::{self, BufReader, BufWriter}, }; use unity_utage_book::book::Book; fn main() -> Result<(), Box> { let book: Book = serde_json::from_reader(BufReader::new(io::stdin()))?; book.write_to_writer(&mut BufWriter::new(io::stdout()))?; Ok(()) }