rust-lang/flate2-rs
DEFLATE, gzip, and zlib bindings for Rust observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 57
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 38
- age_days: 4430
- days_rel: 211
- days_push: 7
- n_releases_24m: 12
Adoption not part of the score
1120 stars · 204 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
flate2 is a Rust library for streaming compression and decompression of DEFLATE-based formats: raw DEFLATE, zlib, and gzip. It supports multiple backends including pure-Rust miniz_oxide, zlib-rs, and C libraries like zlib and zlib-ng, selectable via Cargo feature flags.
Use cases
- compress and decompress gzip files in Rust
- read and write zlib streams
- compress data with DEFLATE in Rust
- choose a fast zlib backend like zlib-ng or zlib-rs
- stream-compress data without loading it all in memory
- avoid needing a C compiler for compression in Rust
When to choose
- you need gzip, zlib, or DEFLATE support in a Rust project
- you want a pure-Rust default backend with optional high-performance C backends
- you need streaming Read/Write-based compression APIs
- you want to avoid duplicate zlib dependencies via zlib-ng-compat
When to avoid
- you need non-DEFLATE formats like zstd, bzip2, or lz4
- you are not working in Rust
- you need archive formats like tar or zip (combine with dedicated crates)
Facets
library · maturity stable
compression file-system developer-tools files developer-tools cross-platform rust cross-platform deflate gzip zlib zlib-ng miniz-oxide streaming-compression rust-crate
10 sources
- readme: https://github.com/rust-lang/flate2-rs · fetched 2026-08-28 · d63f220fe37d
- homepage: https://docs.rs/flate2 · fetched 2026-08-29 · 5aff2b3d7cc2
- site_page: https://docs.rs/ · fetched 2026-08-29 · e52d0767739d
- site_page: https://docs.rs/crate/flate2/latest · fetched 2026-08-29 · 7e26082f1dc9
- site_page: https://docs.rs/document-features/^0.2 · fetched 2026-08-29 · 69b8abc187ee
- site_page: https://docs.rs/crate/flate2/latest/features · fetched 2026-08-29 · 469ec8923e78
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/flate2-rs | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="rust-lang/flate2-rs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem