Email me

Best of / Rust crates / compression

Best of · ranked by real use · data Oct 24, 2026

Best Rust crates for compression

Short answerBy real use, the top Rust crates for compression are miniz_oxide (2.5M a day), flate2 (2.1M a day), zstd (1.1M a day). miniz_oxide is our default pick: 2,510,979 real downloads a day and 443 dependents. Gaining fastest against the field: miniz_oxide (+15%). 4 of these 8 shipped in the last 90 days.

Our picks

  • Default pick: miniz_oxide. The most used that still ships releases, so the most answered questions and the likeliest to already be in your tree.
  • Most recently released: zip (7 days ago).

The ranking

#CrateReal downloads a dayDependentsTrend vs fieldLast releaseWhat it is (its own description)
1miniz_oxide Established2,510,979443+15%7moDEFLATE compression and decompression library rewritten in Rust based on miniz
2flate2 Widely used2,127,5837,758+4%57dDEFLATE compression and decompression exposed as Read/BufRead/Write streams. Supports miniz_oxide and...
3zstd Widely used1,083,3882,614+6%8dBinding for the zstd compression library
4zip Widely used977,2724,151+6%7dLibrary to support the reading and writing of zip files
5brotli Established841,265613+12%52dA brotli compressor and decompressor that with an interface avoiding the rust stdlib. This makes it suitable...
6lz4_flex Established475,029717+1%3moFastest LZ4 implementation in Rust, no unsafe by default
7bzip2 Established435,362580-3%12moBindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams
8snap Established318,500318-2%3moA pure Rust implementation of the Snappy compression algorithm. Includes streaming compression and decompression

Rules

Candidates: crates whose own README says they do this job, picked by hand (flate2, zstd, brotli, lz4_flex, xz2, zip, snap, bzip2, miniz_oxide, lz4); one appears when we have 80+ days of crates.io data for it. Ranked by real downloads a day (quiet-day median, release-day spikes removed), crates.io data Oct 24, 2026. The default pick is the top crate that shipped a release in the last 2 years. Downloads measure use, not quality, and crates that other libraries pull in rank above tools you add yourself: read each description for fit.

Up next

Another best-of list: Same rules, same data.Best Rust crates for hashing and checksumsRead it next →

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Did this answer your question?

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ