gecko-dev/third_party/rust/miniz_oxide_c_api
Andreas Tolfsen f23e8c7f0e Bug 1439329 - Bump crate dependencies for zip 0.3. r=jgraham
Output from "./mach vendor rust":

	% ./mach vendor rust
	 0:01.15 rm -rf /Users/ato/src/gecko/third_party/rust
	      Adding adler32 v1.0.2
	      Adding build_const v0.2.0
	      Adding bzip2 v0.3.2
	      Adding bzip2-sys v0.1.6
	      Adding cc v1.0.4
	      Adding crc v1.7.0
	      Adding flate2 v1.0.1
	      Adding miniz_oxide v0.1.2
	      Adding miniz_oxide_c_api v0.1.2

MozReview-Commit-ID: EBVi4OdzYm3

--HG--
extra : rebase_source : b2f756574ebabc96b1378713a7ee6247274a388e
2018-02-19 12:33:08 +01:00
..
benches
examples
miniz
miniz_stub
src
tests
.cargo-checksum.json
.travis.yml
Cargo.toml
Cargo_fuzz.toml
LICENSE
README.md
build.sh
build_orig_miniz.sh
miniz.h
miniz_common.h
miniz_tdef.h
miniz_tinfl.h
miniz_zip.h
performance.sh
redefine.txt
run_fuzz.sh
test.sh
travis-after-success.sh

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.