flate2
A streaming compression/decompression library DEFALTE-based streams in Rust.
This crate by default implemented as a wrapper around the miniz_oxide
crate, a
port of miniz.c
to Rust. This crate can also optionally use the zlib library
or miniz.c
itself.
Supported formats:
- deflate
- zlib
- gzip
# Cargo.toml
[]
= "1.0"
Using zlib instead of the Rust backend:
[]
= { = "1.0", = ["zlib"], = false }
Using miniz.c
:
[]
= { = "1.0", = ["miniz-sys"], = false }
Compression
use *;
use Compression;
use ZlibEncoder;
Decompression
use *;
use GzDecoder;
License
This project is 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.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.