tree: 1d8b261f39f6045f330ed17ad9b8ccee5241a0c3 [path history] [tgz]
  1. src/
  2. tests/
  3. .cargo-checksum.json
  4. Cargo.toml
  5. LICENSE
  6. Readme.md
third_party/rust_crates/vendor/miniz_oxide/Readme.md

miniz_oxide

A pure rust replacement for the miniz DEFLATE/zlib encoder/decoder. The plan for this crate is to be used as a back-end for the flate2 crate and eventually remove the need to depend on a C library.

Usage

Simple compression/decompression:


extern crate miniz_oxide; use miniz_oxide::inflate::decompress_to_vec; use miniz_oxide::deflate::compress_to_vec; fn roundtrip(data: &[u8]) { let compressed = compress_to_vec(data, 6); let decompressed = decompress_to_vec(decompressed.as_slice()).expect("Failed to decompress!"); }

TODO: Advanced functions.