tree: 724fffb4cb2cac6c3261cf31141c5b4a1134a121 [path history] [tgz]
  1. benches/
  2. examples/
  3. miniz/
  4. miniz_stub/
  5. src/
  6. tests/
  7. .cargo-checksum.json
  8. Cargo.toml
  9. LICENSE
  10. miniz.h
  11. miniz_common.h
  12. miniz_tdef.h
  13. miniz_tinfl.h
  14. miniz_zip.h
  15. README.md
third_party/rust_crates/vendor/miniz_oxide_c_api/README.md

miniz_oxide

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.

miniz_oxide_C_API

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

API documentation

TODO

Testing

$ cargo test
$ ./test.sh

Benches

$ 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

License

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.