NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #310 most downloaded on crates.io
Binding for the zstd compression library.
Latest stable
0.14.5
Last release today
24 Nov 2026
Ships unpredictably
gaps range from 1 weeks to 1.5 years
Rarely documented
notes for 11 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
11 years old
85 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
This release bundles zstd 1.6.0, which fixes CVE-2026-124851 and a batch of memory-safety bugs ( upstream release notes ). Updating is recommended. It…
This release bundles zstd 1.6.0, which fixes
CVE-2026-124851 and a
batch of memory-safety bugs (upstream release notes).
Updating is recommended. It also fixes three soundness issues in zstd-safe
(#401, #415, #416).
With pkg-config, the system's zstd library is used instead of the bundled
one: update it to 1.6.0 to get the upstream fixes.
Rust 1.64 remains supported.
experimental feature: ZSTD_getFrameHeader, ZSTD_FrameHeader,ZSTD_FrameType_e, ZSTD_createDDict_byReference,ZSTD_CCtx_loadDictionary_advanced, ZSTD_DCtx_loadDictionary_advanced,ZSTD_dictContentType_e and ZSTD_dictLoadMethod_e.experimental: zstd 1.6.0 removed ZSTD_copyCCtx and ZSTD_copyDCtx, andZSTD_isDeterministicBuild.legacyNew API:
get_frame_header() returns a frame's header (FrameHeader, zstd's ownFrameHeaderStatus).get_frame_header_advanced() takes a FrameFormat (experimental).CCtx::load_dictionary_advanced() and DCtx::load_dictionary_advanced()DictContentType. ref_dictionary() borrows the dictionary insteadDDict::create_by_reference() no longer needs experimental.CCtx::set_cdict(), CCtx::set_prefix(),CCtx::compress_with_cdict(), CCtx::compress_with_prefix(),CDict::create_by_reference_owned() (experimental), andCCtx::frame_workers(), which tells how many workers a frame gets.Fixes:
CCtx in the middle of a multithreaded frame that reads aNoOp no longer writes through a stale pointer when a WriteBuf'scompress2() when theNbWorkers (#407).WriteBuf runs, so aBehaviour changes:
ref_prefix(), a CDict made by create_by_reference(), a dictionaryref_dictionary()) runs on the calling thread, and JobSize,OverlapSizeLog and RSyncable have no effect on it. compress2() andNbWorkers is refused (parameter_unsupported) without the zstdmtzstdmt nowalloc.compress_block() / decompress_block() run in block sessions of their&mut self method ends the session, and a failed blockWriteBuf's contract now says its capacity and pointer must not changeVec'sunsafe impl WriteBuf.DecoderDictionary::new() and try_new() no longer need experimental.EncoderDictionary is Clone, and EncoderDictionary::from_cdict() wrapswith_prepared_dictionary() only needs the dictionary's bytes to outlivewrite::Encoder::with_prefix() takes a prefix the encoder owns, andbulk::Compressor::compress_with_prefix() borrows one for a single call:OutOfMemory error instead of panicking. The decoders reportOutOfMemory (they said Other), and so does zstd's ownmemory_allocation error, which no longer carries a zstd::Error. Nonewrite::Encoder no longer writes a second, empty frame when flushed whilewrite() in that stateAutoFinishEncoder and AutoFlushDecoder no longer abort the processexperimental featurezstd-safe up to 8.2 has CCtx::try_clone() and DCtx::try_clone() behind
experimental, and they call the functions zstd 1.6.0 removed: with
experimental, those versions no longer build against zstd-sys 2.2.0.
Update to zstd-safe 8.4.0 (zstd 0.14.5), or stay on the previous zstd-sys
with cargo update -p zstd-sys --precise 2.1.3+zstd.1.5.7.
The same applies to the 0.13 line: zstd 0.13 picks up zstd-sys 2.2.0 (and
zstd 1.6.0) on cargo update, except with experimental.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This project publishes no release notes. Between v0.14.3 and v0.14.4 there were 33 commits, 30 of them substantive:
This project publishes no release notes. Between v0.14.3 and v0.14.4 there were 33 commits, 30 of them substantive:
…and 10 more.
This project publishes no release notes. Between v0.14.2 and v0.14.3 there were 24 commits, 24 of them substantive:
This project publishes no release notes. Between v0.14.2 and v0.14.3 there were 24 commits, 24 of them substantive:
…and 4 more.
This release adds decoder APIs that let archive libraries recover their readers without consuming more compressed input or losing ownership on initial
This release adds decoder APIs that let archive libraries recover their readers without consuming more compressed input or losing ownership on initialization errors.
stream::read::Decoder::into_inner(), which returns the underlying reader
at its current position without additional I/O. This supports raw copying of
compressed archive entries. Addresses #381
and the regression reported in #380.Decoder::try_new, try_with_buffer, try_with_dictionary,
try_with_prepared_dictionary, and try_with_ref_prefix. These return
Result<Self, (R, io::Error)>, preserving the original reader if decoder
initialization fails. Addresses #382.finish_frame() can stop before the end of a frame when decoded
output remains unread.Decoder::finish() keeps its 0.14 behavior: it attempts to consume remaining
frame input before returning the reader. Archive libraries that need to recover
compressed bytes should use into_inner() and adopt the new try_* constructors
where they need to retain the reader after initialization failure. Existing
constructor signatures remain unchanged.
Rust 1.64 remains supported.
This project publishes no release notes. Between v0.14.1 and v0.14.2 there were 3 commits, 3 of them substantive:
Release zstd 0.14.1, zstd-safe 8.1.0, and zstd-sys 2.1.1
Release zstd 0.14.1, zstd-safe 8.1.0, and zstd-sys 2.1.1
This project publishes no release notes. Between v0.14.0 and v0.14.1 there were 30 commits, 29 of them substantive:
…and 9 more.
The with_prepared_dictionary() constructors now borrow the dictionary for as long as the stream (https://github.com/gyscos/zstd-rs/pull/372). The dict
with_prepared_dictionary() constructors now borrow the dictionary for as long as the stream (https://github.com/gyscos/zstd-rs/pull/372). The dictionary is registered with the underlying context by pointer, so dropping it early left the stream with a dangling pointer - reachable from safe code.Decoder::finish() now consumes the rest of the frame, so the reader is handed back positioned just after it (https://github.com/gyscos/zstd-rs/pull/251, https://github.com/gyscos/zstd-rs/issues/255). zstd can produce the last of the decoded data before it has read the frame epilogue, so a caller who stops reading once it has the bytes it wanted used to get its reader back pointing inside the frame. Note that finish() may now read from the underlying reader; Decoder::finish_frame() is the same operation with the error surfaced.Read::read() with an empty buffer returns Ok(0) instead of an error (https://github.com/gyscos/zstd-rs/issues/318).Decoder::finish_frame(), to consume the rest of the current frame explicitly.bulk::Compressor::set_pledged_src_size() (https://github.com/gyscos/zstd-rs/issues/320).with_context constructors (https://github.com/gyscos/zstd-rs/pull/338).cmake and vendored features, forwarded to zstd-safe.This project publishes no release notes. Between v0.13.5 and v0.14.0 there were 22 commits, 21 of them substantive:
vendored cargo feature (#309)…and 1 more.
Nothing published for this version
This project publishes no release notes. Between v0.13.4 and v0.13.5 there were 3 commits, 3 of them substantive:
This project publishes no release notes. Between v0.13.4 and v0.13.5 there were 3 commits, 3 of them substantive:
This project publishes no release notes. Between v0.13.3 and v0.13.4 there were 53 commits, 50 of them substantive:
This project publishes no release notes. Between v0.13.3 and v0.13.4 there were 53 commits, 50 of them substantive:
debug featureZSTD_getFrameProgression through CCtx (#335)with_context constructors (#338)…and 30 more.
This project publishes no release notes. Between v0.13.2 and v0.13.3 there were 20 commits, 20 of them substantive:
This project publishes no release notes. Between v0.13.2 and v0.13.3 there were 20 commits, 20 of them substantive:
need_wasm_shim logic for wasm32-wasip1 (#289)This project publishes no release notes. Between v0.13.1 and v0.13.2 there were 11 commits, 11 of them substantive:
This project publishes no release notes. Between v0.13.1 and v0.13.2 there were 11 commits, 11 of them substantive:
This project publishes no release notes. Between v0.13.0 and v0.13.1 there were 8 commits, 8 of them substantive:
This project publishes no release notes. Between v0.13.0 and v0.13.1 there were 8 commits, 8 of them substantive:
Fix potential buffer overflow (https://github.com/gyscos/zstd-rs/pull/231).
This project publishes no release notes. Between v0.12.4 and v0.13.0 there were 28 commits, 27 of them substantive:
core::ffi (#226)…and 7 more.
This project publishes no release notes. Between 0.4.13 and v0.12.4 there were 250 commits, 234 of them substantive:
This project publishes no release notes. Between 0.4.13 and v0.12.4 there were 250 commits, 234 of them substantive:
…and 214 more.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix compilation with bindgen feature.
bindgen feature.This project publishes no release notes. Between 0.4.12 and 0.4.13 there were 1 commits, 1 of them substantive:
This project publishes no release notes. Between 0.4.11 and 0.4.12 there were 1 commits, 1 of them substantive:
This project publishes no release notes. Between 0.4.11 and 0.4.12 there were 1 commits, 1 of them substantive:
Implements Send for streams, and Send + Sync for dictionaries
zstd-safe to 1.2.1
Send for streams, and Send + Sync for dictionariesstream::Encoder, stream::Decoder, block::Compressor and block::Decompressor now implement Send.This project publishes no release notes. Between 0.4.10 and 0.4.11 there were 8 commits, 7 of them substantive:
This project publishes no release notes. Between 0.4.9 and 0.4.10 there were 12 commits, 8 of them substantive:
This project publishes no release notes. Between 0.4.9 and 0.4.10 there were 12 commits, 8 of them substantive:
Nothing published for this version
Fix possible data corruption issue with interrupted streams
tokio feature)One column per quarter.