Pure Rust 100% safe bzip2 decompressor.
rustc_1_37
: bump MSRV to 1.37, enable more optimizationsnightly
: require Rust Nightly, enable more optimizations```rust use std::fs::File; use std::io; use bzip2_rs::DecoderReader;
let mut compressedfile = File::open("input.bz2")?; let mut decompressedoutput = File::create("output")?;
let mut reader = DecoderReader::new(compressedfile); io::copy(&mut reader, &mut decompressedoutput)?; ```
Licensed under either of * Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) * MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.