makepad-miniz 0.9.0

Makepad fork of miniz-oxide with no deps
Documentation
  • Coverage
  • 58.25%
    113 out of 194 items documented3 out of 60 items with examples
  • Size
  • Source code size: 228.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 8.82 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • makepad/makepad
    6565 350 109
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • makepaddev

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:


use makepad_miniz::inflate::decompress_to_vec;
use makepad_miniz::deflate::compress_to_vec;

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

# roundtrip(b"Test_data test data lalalal blabla");