1 //! Decompresses the input from stdin and writes the result to stdout.
2 
3 use std::io::{self, BufWriter};
4 
main()5 fn main() {
6     match {
7         let mut decoder = weezl::decode::Decoder::new(weezl::BitOrder::Msb, 8);
8         let stdout = io::stdout();
9         let stdout = BufWriter::new(stdout.lock());
10         let stdin = io::stdin();
11         let stdin = stdin.lock();
12         decoder.into_stream(stdout).decode_all(stdin).status
13     } {
14         Ok(()) => (),
15         Err(err) => eprintln!("{}", err),
16     }
17 }
18