#zlib #miniz #deflate #encoding


DEFLATE compression and decompression API designed to be Rust drop-in replacement for miniz

4 releases

0.1.3 Jun 23, 2018
0.1.2 Jan 9, 2018
0.1.1 Oct 28, 2017
0.1.0 Oct 10, 2017

#8 in Compression

Download history 2886/week @ 2018-05-06 3575/week @ 2018-05-13 3087/week @ 2018-05-20 2701/week @ 2018-05-27 3575/week @ 2018-06-03 3339/week @ 2018-06-10 2892/week @ 2018-06-17 3249/week @ 2018-06-24 3978/week @ 2018-07-01 3610/week @ 2018-07-08 3415/week @ 2018-07-15 2622/week @ 2018-07-22 2479/week @ 2018-07-29

11,106 downloads per month


Rust replacement for the miniz deflate/zlib encoder/decoder

This project is organized into a C API shell and a rust crate. The Rust crate is found in the miniz_oxide subdirectory.


The C API is intented to replicate the api exported from miniz.

API documentation



$ cargo test
$ ./test.sh


$ cargo bench --features=benching

or to compare to miniz

$ ./travis-after-success.sh

Including in C/C++ projects

Link against the libminiz_oxide_c_api.a generated by build.sh

Cargo-fuzz testing

Install fuzzer:

$ cargo install cargo-fuzz

Run fuzzer:

$ ./run_fuzz.sh


This library (excluding the miniz C code used for tests) is licensed under the MIT license. The library is based on the miniz C library, of which the parts used are dual-licensed under the MIT license and also the unlicense. The parts of miniz that are not covered by the unlicense is some Zip64 code which is only MIT licensed. This and other Zip functionality in miniz is not part of the miniz_oxidde and miniz_oxide_c_api rust libraries.

MIT license


  • build build.rs
  • build cc 1.0

Reverse deps