Skip to content

matklad/miniz_oxide

 
 

Repository files navigation

miniz_oxide

Rust replacement for miniz

Building

$ ./build.sh

Testing

$ ./test.sh

Including in Rust projects

Even thought miniz_oxide uses cargo internally, it is not a crate and should be used as if it is a foreign library. To build a crate with miniz_oxide you need to follow those steps:

  • Write extern block with miniz functions with attribute #[link(name = "miniz_oxide")]
  • Run build.sh from build.rs of your project and add links = "miniz_oxide" to [package]

Including in C/C++ projects

Link against the libminiz_oxide.a generated by build.sh

AFL testing

To run American Fuzzy Lop you need to start docker:

$ docker run -v $(pwd):/source -it corey/afl.rs bash

And from there build miniz_oxide with afl_test feature:

$ cargo build --release --features="afl_test"

Finally, run the afl:

afl-fuzz -i in -o out target/release/miniz_oxide

About

Rust replacement for miniz

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.5%
  • C++ 11.7%
  • Rust 8.4%
  • Shell 0.4%