Skip to content

v0.19.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 03:10
· 65 commits to main since this release
8839b34

Yanked due to bug for flate2 version below 1.1. Use 0.19.2 or above instead

Changed

  • Gzip backend selection via feature flags:
    • Default feature gz switched to use flate2 with the gz-zlib-rs backend for improved performance.
    • New selectors and aliases:
      • gz-zlib-rs — enables flate2/zlib-rs (Rust, fast)
      • gz-miniz — enables flate2/miniz_oxide (pure Rust, most portable)
    • Disabled flate2 default-features to allow explicit backend choice.

Added

  • Criterion benchmark benches/gzip_decompress.rs to measure gzip decompression throughput across backends.

Usage

  • Default (zlib-rs):
    • cargo build
    • cargo bench --bench gzip_decompress --features gz
  • zlib-rs:
    • cargo build --no-default-features --features gz-zlib-rs
    • cargo bench --bench gzip_decompress --no-default-features --features gz-zlib-rs
  • miniz_oxide (explicit):
    • cargo build --no-default-features --features gz-miniz
    • cargo bench --bench gzip_decompress --no-default-features --features gz-miniz