bzip2-rs 0.1.0

Pure Rust bzip2 decompressor
Documentation

bzip2-rs

crates.io Documentation dependency status Rustc Version 1.39.0+ CI

Pure Rust 100% safe bzip2 decompressor.

Features

  • No features are enabled by default, Rust >= 1.34.2 is supported
  • rustc_1_37: enables Rust >= 1.37 optimizations
  • rustc_1_40: enables Rust >= 1.40 optimizations
  • rustc_1_51: enables Rust >= 1.51 optimizations

Usage

use std::fs::File;
use std::io;
use bzip2_rs::DecoderReader;

let mut compressed_file = File::open("input.bz2")?;
let mut output = File::create("output")?;

let mut reader = DecoderReader::new(compressed_file);
io::copy(&mut reader, &mut 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.