miniz_oxide

A pure rust replacement for the miniz DEFLATE/zlib encoder/decoder. The main intention of this crate is to be used as a back-end for the flate2, but it can also be used on it's own. Using flate2 with the rust_backend feature provides an easy to use streaming API for miniz_oxide.

Requires at least rust 1.34.

Usage

Simple compression/decompression: ```rust

extern crate miniz_oxide;

use minizoxide::inflate::decompresstovec; use minizoxide::deflate::compresstovec;

fn roundtrip(data: &[u8]) { let compressed = compresstovec(data, 6); let decompressed = decompresstovec(decompressed.as_slice()).expect("Failed to decompress!"); }

```