compression

crates.io badge Build Status docs.rs Coverage Status

Compression libraries implemented by pure Rust.

toml [dependencies] compression = "0.1"

Features

Examples

```rust extern crate compression; use compression::prelude::*;

fn main() { let compressed = b"aabbaabbaabbaabb\n" .into_iter() .cloned() .encode(&mut BZip2Encoder::new(9), Action::Finish) .collect::, _>>() .unwrap();

let decompressed = compressed
    .iter()
    .cloned()
    .decode(&mut BZip2Decoder::new())
    .collect::<Result<Vec<_>, _>>()
    .unwrap();

} ```