bzip2-rs

Crates.iobzip2-rs
lib.rsbzip2-rs
version0.1.2
sourcesrc
created_at2021-01-30 15:29:30.681262
updated_at2021-02-16 10:23:01.917926
descriptionPure Rust bzip2 decompressor
homepage
repositoryhttps://github.com/paolobarbolini/bzip2-rs
max_upload_size
id348466
size606,251
Paolo Barbolini (paolobarbolini)

documentation

README

bzip2-rs

crates.io Documentation dependency status Rustc Version 1.34.2+ CI

Pure Rust 100% safe bzip2 decompressor.

Features

  • Default features: Rust >= 1.34.2 is supported
  • rustc_1_37: bump MSRV to 1.37, enable more optimizations
  • nightly: require Rust Nightly, enable more optimizations

Usage

use 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)?;

Upcoming features

  • parallel decoding support (similar to pbzip2)
  • bzip2 encoding support
  • no_std support (is anybody interested with this?)

License

Licensed under either of

at your option.

Contribution

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.

Commit count: 80

cargo fmt