flate2
DEFLATE compression and decompression exposed as Read/BufRead/Write streams. Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip, and raw deflate streams.
1.1.9
631M downloads/mo
#146 most downloaded on crates.io
rust-lang/flate2-rs
What this package is like to depend on
Last release 6 months ago
03 Feb 2026
Ships fairly regularly
a new release about every 5 weeks
Rarely documented
notes for 8 of 75 stable releases
2 versions withdrawn
withdrawn after publishing
12 years old
77 releases · first in 2014
7 releases in the last 12 months
see the full history below
Release timeline
77 releases · Nov 2014 to Feb 2026Releases
latest 60 of 77-
1.1.903 Feb 2026Release notes
Open source →What's Changed
- use
zlib-rsfor crc32 (when available) by @folkertdev in #526 - Add tests to check data CRC by @jongiddy in #527
- update LICENSE-MIT by @wgyt in #528
- upgrade zlib-rs to version
0.6.0by @folkertdev in #529
New Contributors
Full Changelog: 1.1.8...1.1.9
- use
-
1.1.812 Jan 2026Release notes
Open source →What's Changed
- Document feature flags using document-features crate by @Copilot in #519
- Complete the zlib-rs support without the need for C-bindings by @Byron in #524
- test zlib API for all compatible backends by @Byron in #525
New Contributors
- @Copilot made their first contribution in #519
Full Changelog: 1.1.7...1.1.8
-
1.1.705 Dec 2025 withdrawnRelease notes
Open source →What's Changed
- chore: make some documents clearer by @reddaisyy in #510
- Explain rationale for choosing bufread,read,write modules by @jongiddy in #512
- use Decompress::reset() instead of recreating in DeflateDecoder by @amirshukayev in #514
- use
zlib_rsapi by @folkertdev in #513
New Contributors
- @reddaisyy made their first contribution in #510
- @amirshukayev made their first contribution in #514
Full Changelog: 1.1.5...1.1.6
-
1.1.605 Dec 2025 withdrawnRelease notes
Open source →It caused #515.
What's Changed
- chore: make some documents clearer by @reddaisyy in #510
- Explain rationale for choosing bufread,read,write modules by @jongiddy in #512
- use Decompress::reset() instead of recreating in DeflateDecoder by @amirshukayev in #514
- use
zlib_rsapi by @folkertdev in #513
New Contributors
- @reddaisyy made their first contribution in #510
- @amirshukayev made their first contribution in #514
Full Changelog: 1.1.5...1.1.6
-
1.1.524 Oct 2025Release notes
Open source →This bugfix release fixes #508, as flush didn't always work anymore in conjunction with
miniz_oxide.What's Changed
Full Changelog: 1.1.4...1.1.5
-
1.1.405 Oct 2025Release notes
Open source →See here for the changelog of v1.1.3: https://github.com/rust-lang/flate2-rs/releases/tag/1.1.3 .
Full Changelog: 1.1.3...1.1.4
-
1.1.305 Oct 2025Release notes
Open source →What's Changed
- use
zlibVersion()instead of aconstfor the version by @folkertdev in #491 - Switch from adler2 to simd-adler32 crate when using miniz_oxide backend by @Shnatsel in #492
- Correct documentation typo by @fintelia in #495
- Use partial flushes with miniz_oxide backend by @fintelia in #496
- Undo introducing straight up incorrect documentation by @Shnatsel in #497
- Update cloudflare-zlib-sys crate by @jongiddy in #503
- Add
(de)compress_uninitthat accepts&[MaybeUninit<u8>]by @NobodyXu in #502 - bump the patch level for a new release by @Byron in #504
New Contributors
Full Changelog: 1.1.2...1.1.3
Release notes
Open source →This tag was signed with the committer’s verified signature .
Byron Sebastian Thiel
GPG key ID: 9CB5EE7895E8268B
Verified Learn about vigilant mode .
- use
-
1.1.207 Jun 2025Release notes
Open source →What's Changed
- feat: simplify manual bits extraction and an unneeded reref by @CosminPerRam in #484
- chore: update deps by @CosminPerRam in #485
- feat: solve remaining clippy warnings and add it to CI by @CosminPerRam in #487
- ci: add audit check by @CosminPerRam in #488
- feat: revert most recent deps updates by @CosminPerRam in #489
- upgrade zlib-rs to version
0.5.1by @folkertdev in #490
Full Changelog: 1.1.1...1.1.2
-
1.1.102 Apr 2025Release notes
Open source →This release should be smaller and thus faster to download.
Additionally, when using thezlib-rsbackend, duplicate symbol issues shouldn't occur anymore.What's Changed
- docs: Update README to promote zlib-rs by @Xuanwo in #470
- Update miniz_oxide to 0.8.5 by @oyvindln in #475
- Remove stale CHANGELOG.md by @jayvdb in #476
- More informative README on backends by @Shnatsel in #480
- Rewrite outdated backend notes in lib.rs by @Shnatsel in #481
- upgrade zlib-rs to version
0.5.0by @folkertdev in #482
New Contributors
Full Changelog: 1.1.0...1.1.1
-
1.1.024 Feb 2025Release notes
Open source →What's Changed
- Fix cfgs by @kornelski in #441
- update CI to use new wasi target by @oyvindln in #444
- Implement
CloneforCompressErrorandDecompressErrorby @mkrasnitski in #445 - Update LICENSE-MIT by @maximevtush in #448
- feat: replace custom u16 le parser with existent rust method by @CosminPerRam in #450
- Fix CI by @Byron in #449
- Do not use cloudflare-zlib-sys 0.3.4 by @jongiddy in #451
- Increase minimum compiler version to 1.67 by @jongiddy in #452
- deps: bump miniz_oxide to 0.8.4 by @CosminPerRam in #459
- deps(dev): update rand to 0.9 by @CosminPerRam in #458
- docs: fix spelling mistake in flate2::zlib::write::ZlibDecoder by @CosminPerRam in #455
- feat: remove explicit default impls by @CosminPerRam in #457
- Change private bounds from
R: ReadtoR: BufReadby @JonathanBrouwer in #453 - feat: replace manual copy loop with rust-provided function by @CosminPerRam in #456
- feat: reduce CrcReader::sum calls in GzEncoder::read_footer by @CosminPerRam in #454
- feat: remove redundant if guard on option value match by @CosminPerRam in #464
- feat: add Error associated type in zio::Ops to handle multiple errors by @CosminPerRam in #461
- feat: remove explicit redundant lifetime by @CosminPerRam in #465
- feat: impl From to MZFlush by @CosminPerRam in #462
- upgrade zlib-rs to version
0.4.2by @folkertdev in #466
New Contributors
- @mkrasnitski made their first contribution in #445
- @maximevtush made their first contribution in #448
- @CosminPerRam made their first contribution in #450
- @JonathanBrouwer made their first contribution in #453
Full Changelog: 1.0.35...1.1.0
-
1.0.3514 Nov 2024Nothing published for this version
-
1.0.3426 Sep 2024Nothing published for this version
-
1.0.3324 Aug 2024Nothing published for this version
-
1.0.3220 Aug 2024Nothing published for this version
-
1.0.3103 Aug 2024Nothing published for this version
-
1.0.3029 Apr 2024Nothing published for this version
-
1.0.2926 Apr 2024Nothing published for this version
-
1.0.2813 Oct 2023Nothing published for this version
-
1.0.2715 Aug 2023Nothing published for this version
-
1.0.2628 Apr 2023Nothing published for this version
-
1.0.2524 Nov 2022Nothing published for this version
-
1.0.2428 May 2022Nothing published for this version
-
1.0.2311 Apr 2022Nothing published for this version
-
1.0.2213 Sep 2021Nothing published for this version
-
1.0.2130 Aug 2021Nothing published for this version
-
1.0.2029 Jan 2021Nothing published for this version
-
1.0.1902 Nov 2020Nothing published for this version
-
1.0.1830 Sep 2020Nothing published for this version
-
1.0.1718 Aug 2020Nothing published for this version
-
1.0.1629 Jun 2020Nothing published for this version
-
1.0.1417 Mar 2020Nothing published for this version
-
1.0.1311 Nov 2019Nothing published for this version
-
1.0.1202 Oct 2019Nothing published for this version
-
1.0.1114 Aug 2019Nothing published for this version
-
1.0.1014 Aug 2019Nothing published for this version
-
1.0.921 Jun 2019Nothing published for this version
-
1.0.819 Jun 2019Nothing published for this version
-
1.0.714 Mar 2019Nothing published for this version
-
1.0.602 Dec 2018Nothing published for this version
-
1.0.519 Nov 2018Nothing published for this version
-
1.0.416 Oct 2018Nothing published for this version
-
1.0.304 Oct 2018Nothing published for this version
-
1.0.231 Jul 2018Nothing published for this version
-
1.0.130 Nov 2017Nothing published for this version
-
1.0.029 Nov 2017Nothing published for this version
-
0.2.2015 Sep 2017Nothing published for this version
-
0.2.1912 Apr 2017Nothing published for this version
-
0.2.1811 Apr 2017Nothing published for this version
-
0.2.1720 Jan 2017Nothing published for this version
-
0.2.1620 Jan 2017Nothing published for this version
-
0.2.1518 Jan 2017Nothing published for this version
-
0.2.1406 May 2016Nothing published for this version
-
0.2.1324 Jan 2016Nothing published for this version
-
0.2.1218 Jan 2016Nothing published for this version
-
0.2.1109 Nov 2015Nothing published for this version
-
0.2.1007 Nov 2015Nothing published for this version
-
0.2.909 Sep 2015Nothing published for this version
-
0.2.831 Aug 2015Nothing published for this version
-
0.2.723 Apr 2015Nothing published for this version
-
0.2.603 Apr 2015Nothing published for this version