Crates.io | bzip2-rs |
lib.rs | bzip2-rs |
version | 0.1.2 |
source | src |
created_at | 2021-01-30 15:29:30.681262 |
updated_at | 2021-02-16 10:23:01.917926 |
description | Pure Rust bzip2 decompressor |
homepage | |
repository | https://github.com/paolobarbolini/bzip2-rs |
max_upload_size | |
id | 348466 |
size | 606,251 |
Pure Rust 100% safe bzip2 decompressor.
rustc_1_37
: bump MSRV to 1.37, enable more optimizationsnightly
: require Rust Nightly, enable more optimizationsuse std::fs::File;
use std::io;
use bzip2_rs::DecoderReader;
let mut compressed_file = File::open("input.bz2")?;
let mut decompressed_output = File::create("output")?;
let mut reader = DecoderReader::new(compressed_file);
io::copy(&mut reader, &mut decompressed_output)?;
Licensed under either of
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.