NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1372 most downloaded on crates.io
A memory-safe zlib implementation written in rust
Latest stable
0.6.8
Last release 2 months ago
15 Sep 2026
Release timing varies
gaps range from 9 days to 4 months
Most releases are documented
notes for 22 of 25 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
25 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
merge env sections in yaml by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/558
Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.7...v0.6.8
add linux-loongarch64 runner by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/543
linux-loongarch64 runner by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/543set_level by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/552Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.6...v0.6.7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
We now support the zlib 1.3.2 API, including deflateUsed and various symbols suffixed by _z to indicate that they use usize for lengths. That is mostl
We now support the zlib 1.3.2 API, including deflateUsed and various symbols suffixed by _z to indicate that they use usize for lengths. That is mostly useful on targets where c_ulong is only a 32-bit integer.
deflateUsed by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/534{compress, uncompress, etc.}_z variants that take usize for lengths by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/535Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.5...v0.6.6
Fixes an MSRV issue on AArch64.
Fixes an MSRV issue on AArch64.
Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.3...v0.6.5
Adds a fix for the raptor lake CPU bug and for an off-by-one error in adler32 on aarch64 resulting in an incorrect checksum.
Adds a fix for the raptor lake CPU bug and for an off-by-one error in adler32 on aarch64 resulting in an incorrect checksum.
infback by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/497gzopen behavior around lseek64 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/493>= y + 1 or x - 1 >= by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/503window_bits by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/505pair mod BASE after handle_tail on aarch64 NEON by @shenxiul in https://github.com/trifectatechfoundation/zlib-rs/pull/504inflateBackInit_ by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/507NULL when the requested allocation is too large by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/508aarch64_be by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/512Cargo.lock by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/521loongarch64 crc32 implementation with Miri by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/523Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.3...v0.6.4
A while ago a bug was reported in zlib-rs https://github.com/trifectatechfoundation/zlib-rs/issues/459, which turned out to also exist in zlib-ng. zli
A while ago a bug was reported in zlib-rs https://github.com/trifectatechfoundation/zlib-rs/issues/459, which turned out to also exist in zlib-ng. zlib-ng has now fixed the bug and made a new release, and we're following suit here. This fix can change the output of compression slightly.
all-features and --no-default-features builds by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/480Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.2...v0.6.3
fix overflows in deflate by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/474
Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.6.1...v0.6.2
Replace run-time asserts with compile time in deflate tally functions by @brian-pane in #450
as _ casts with return codes by @Mrmaxmeier in #456compress returning incorrect error value by @Mrmaxmeier in #454C-unwind into just C by @folkertdev in #441std by default when building a cdylib by @folkertdev in #462getrandom to 0.2.17 by @folkertdev in #464gz docs updates by @folkertdev in #463inftrees.rs improvements by @folkertdev in #471total_{in, out} on windows by @folkertdev in #473Full Changelog: v0.5.5...v0.6.1
as _ casts with return codes by @Mrmaxmeier in https://github.com/trifectatechfoundation/zlib-rs/pull/456compress returning incorrect error value by @Mrmaxmeier in https://github.com/trifectatechfoundation/zlib-rs/pull/454C-unwind into just C by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/441std by default when building a cdylib by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/462getrandom to 0.2.17 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/464gz docs updates by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/463inftrees.rs improvements by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/471total_{in, out} on windows by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/473Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.5...v0.6.1
functions that used extern "C-unwind" before now use extern "C" . This helps when building zlib-rs as a C library, because unwinding from rust into C
libz-rs-sys
extern "C-unwind" before now use extern "C". This helps when building zlib-rs as a C library, because unwinding from rust into C is UB. Now, if a panic does occur in the rust code, it will abort the program at the FFI boundary rather than unwind into C code. If you do really need unwinding in rust code, we suggest using flate2 or using zlib-rs directly.zlib-rs
uncompress_slice function was renamed to decompress_slicegz* functions are now included in the main crate. Thanks again to @brian-pane for implementing these.inflateBack was added). The gzprintf and gzvprintf functions need nightly though.avx512 support.as _ casts with return codes by @Mrmaxmeier in #456compress returning incorrect error value by @Mrmaxmeier in #454C-unwind into just C by @folkertdev in #441std by default when building a cdylib by @folkertdev in #462getrandom to 0.2.17 by @folkertdev in #464gz docs updates by @folkertdev in #463Full Changelog: v0.5.5...v0.6.0
libz-rs-sys
extern "C-unwind" before now use extern "C". This helps when building zlib-rs as a C library, because unwinding from rust into C is UB. Now, if a panic does occur in the rust code, it will abort the program at the FFI boundary rather than unwind into C code. If you do really need unwinding in rust code, we suggest using flate2 or using zlib-rs directly.zlib-rs
uncompress_slice function was renamed to decompress_slicegz* functions are now included in the main crate. Thanks again to @brian-pane for implementing these.inflateBack was added). The gzprintf and gzvprintf functions need nightly though.avx512 support.as _ casts with return codes by @Mrmaxmeier in https://github.com/trifectatechfoundation/zlib-rs/pull/456compress returning incorrect error value by @Mrmaxmeier in https://github.com/trifectatechfoundation/zlib-rs/pull/454C-unwind into just C by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/441std by default when building a cdylib by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/462getrandom to 0.2.17 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/464gz docs updates by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/463Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.5...v0.6.0
use global allocator by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/446
c_uint by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/449Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.4...v0.5.5
Export missing functions by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/440
gzvprintf by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/435uncompress2 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/436c_variadic API by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/443set_dictionary and set_level to stable api by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/444Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.3...v0.5.4
add example data from gitoxide, which decompresses many small files by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/411
compare256 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/427gz api with miri by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/431Mode::Done state by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/434Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.2...v0.5.3
add a fuzzer that compresses the gzip header by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/384
zlib.h and zconf.h by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/385SymBuf by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/391get_crc_table by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/409Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.1...v0.5.2
we now have experimental support for the gz* functions when building a C dynamic library. See the README of libz-rs-sys-cdylib. (most of the work here
gz* functions when building a C dynamic library. See the README of libz-rs-sys-cdylib. (most of the work here was done by @brianpaneinflateCodesUsed, inflateGetDictionary and deflateGetDictionaryubuntu-20.04, just use ubuntu-latest by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/330cargo nextest with cargo llvm-cov to gather the test coverage by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/338slide_hash by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/343MaybeUninit<u8> by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/346bmi1 and bmi2 target feature by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/362slide_hash_chain on neon by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/366inflateCodesUsed by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/350compare256 aarch64 neon implementation by @Dr-Emann in https://github.com/trifectatechfoundation/zlib-rs/pull/371gzprintf by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/376inflateGetDictionary and deflateGetDictionary by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/380cdylib: use core instead of std by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/383Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.5.0...v0.5.1
This is technically a breaking change, but unless you rely on rust exporting C symbols, you should not run into any issues when upgrading.
This is technically a breaking change, but unless you rely on rust exporting C symbols, you should not run into any issues when upgrading.
export-symbols feature now controls whether C symbols are exported. This feature is off by default (that is why this is a breaking change; the behavior of earlier versions was to export those symbols). For rust users that is almost certainly the correct default, because it means zlib-rs can be used together with stock zlib or zlib-ng in the same project. This should fix some issues with symbol clashes between libz-sys (used e.g. by openssl) and zlib-rs.cdylib crate now uses panic=abort. For C users, that is the only safe way to panic, because unwinding to C is unsound.slide_hash implementation vectorizes well on avx2 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/298Cargo.lock by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/308zlig-ng -> zlib-ng by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/310semver-prefix feature (like we have for libbz2-rs-sys) by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/318export-symbols feature flag by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/322panic=abort to the cdylib by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/323zlibCompileFlags by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/324Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.4.2...v0.5.0
Lots of performance improvements. We're now substantially faster than other implementations for inflate (decompression), and faster in the most import
Lots of performance improvements. We're now substantially faster than other implementations for inflate (decompression), and faster in the most important cases for compression.
fill_window by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/271inflate_fast_help for avx2 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/289crc target feature to the acle crc32 implementation by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/294Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.4.1...v0.4.2
A minor release, but with some nice goodies.
A minor release, but with some nice goodies.
We now support building C-compatible dynamic libraries with cargo c. The readme of the libz-rs-sys-cdylib crate has all the details.
Additionally, performance has improved drastically. We fixed an incorrect loop bound and started using the enable-dfa-jump-thread llvm flag in our benchmarks, which give inflate performance that is consistently better than zlib-ng. Meanwhile @brian-pane has been making some smaller improvements to deflate performance, where we already beat zlib-ng in some, but not yet in all cases.
enable-dfa-jump-thread by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/257inflate_fast_help loop bound by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/260Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.4.0...v0.4.1
Clippy update by @squell in https://github.com/trifectatechfoundation/zlib-rs/pull/178
compare256 wasm simd implementation by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/179copy_match_help by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/180Writer by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/181struct Table by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/182copy_chunk_unchecked by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/185Writer api usage by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/186copy_match by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/188drop_bits by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/191libz-sys dependency from zlib-rs crate by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/194Writer on aarch64 by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/196copy_match by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/197slide_hash by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/199longest_match by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/202inflate::State::extra by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/203deflate:: tests under miri by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/214head.done = -1 if a gzip header was configured but the input is not gzip data by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/217medium algorithm by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/223MaybeUninit::slice_assume_init_ref implementation by @folkertdev in https://github.com/trifectatechfoundation/zlib-rs/pull/243Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.3.0...v0.4.0
fix out-of-bounds write in Pending by @folkertdev
Full Changelog: https://github.com/trifectatechfoundation/zlib-rs/compare/v0.3.0...v0.3.1
add custom-prefix feature flag by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/125
custom-prefix feature flag by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/125ROADMAP.md by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/131crc32_hash_calc test on x86, x86_64 and aarch64 by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/137s390x-unknown-linux-gnu by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/138i686 and s390x on CI by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/139hash_calc selection logic by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/140NULL in adler32 and crc32 functions by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/145inflateGetHeader by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/153mod read_buf: remove unused methods by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/158hash_calc by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/161Full Changelog: https://github.com/memorysafety/zlib-rs/compare/v0.2.1...v0.3.0
Fix inflate() flush modes and implement state.data_type by @cjgriscom in https://github.com/memorysafety/zlib-rs/pull/113
inflate::uncompress bug by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/116inflate::reset_keep: clear more fields by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/121libz-rs-sys and zlib-rs use their local README.md for crates.io by @folkertdev in https://github.com/memorysafety/zlib-rs/pull/120Full Changelog: https://github.com/memorysafety/zlib-rs/compare/v0.2.0...v0.2.1
* Fix bug with window padding * Add no_std support
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per month.