NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1115 most downloaded on crates.io
A decoder for the zstd compression format
Latest stable
0.9.1
Last release 1 months ago
11 Oct 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 17 of 17 stable releases
4 versions withdrawn
withdrawn after publishing
7 years old
21 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Reduce memory footprint while decoding
Avoid emitting compressed blocks when the compressed payload is not smaller than the raw block.
FrameDecoder::set_max_window_size/max_window_size, StreamingDecoder::new_with_max_window_size, and the DEFAULT_MAX_WINDOW_SIZE constant. The default stays 100mb. (#111)FrameDecoderError::WindowSizeTooBig gained a max field and now reports the effective limit. (#111)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Introduce the rust-version field
rust-version fieldFrameDecoder::set_max_window_size/max_window_size, StreamingDecoder::new_with_max_window_size, and the DEFAULT_MAX_WINDOW_SIZE constant. The default stays 100mb.FrameDecoderError::WindowSizeTooBig gained a max field and now reports the effective limit.@zleyyij improved the CLI a ton and switched this repo to a cargo workspace so that the dependencies for the binary and the library can be separated.
@zleyyij improved the CLI a ton and switched this repo to a cargo workspace so that the dependencies for the binary and the library can be separated.
Also, the MatchGeneratorDriver is now exported so users are able to name it as the M in FrameCompressor<R, W, M>
rust-version fieldChecksum is now added in compressed frames if the hash feature is enabled
clapM in FrameCompressor<R,W,M>This release adds initial support for compressing data into the zstd format. This enables interoperability with workflows that require payloads to be
This release adds initial support for compressing data into the zstd format. This enables interoperability with workflows that require payloads to be encoded with zstd all in pure rust, no C dependencies needed.
The public API of the crate has been reorganized and cleaned up. Since there is now also encoding support the root couldn't really be used for structures used to decode data.
Decoding errors now live in their own module ruzstd::decoding::errors. This enabled hiding a lot of the internal modules and by that decluttering the docs.
The FrameDecoder and StreamingDecoder are now found in ruzstd::decoding instead of the root of the namespace. This is because there is now the new ruzstd::encoding module which contains the FrameCompressor as well as the compress/compress_to_vec convenience functions.
content_checksum when the hash feature is enabledIssue #75 reported an usoundness bug in the RingBuffer that could result in unintented heap reads. This has been fixed in #76 by @paolobarbolini
Issue #75 reported an usoundness bug in the RingBuffer that could result in unintented heap reads. This has been fixed in #76 by @paolobarbolini
Versions 0.7.0 up to and including 0.7.2 are affected
Also include #70 that adds convenience functions to decode all zstd frames in a given slice
*Contains unsoundness fixed in 0.7.3*
Contains unsoundness fixed in 0.7.3
https://github.com/workingjubilee put the work in to make this crate usable as a dependency in the standard library in #67
Soundness fix in decoding::RingBuffer. The lengths of the diferent regions where sometimes calculated wrongly, resulting in reads of heap memory not belonging to that ringbuffer
Added convenience functions to FrameDecoder to decode multiple frames from a buffer (https://github.com/philipc)
*Contains unsoundness fixed in 0.7.3*
Contains unsoundness fixed in 0.7.3
https://github.com/michaelkirk noticed and fixed a bug related to the drain_to family of functions where a write of 0 bytes means that the target is temporarily not able to receive more bytes which caused an endless loop before the fix
*Contains unsoundness fixed in 0.7.3*
Contains unsoundness fixed in 0.7.3
StreamingDecoder now has API to get to the contained impl ReadThe FrameDecoder is now Send + Sync (RingBuffer impls these traits now)
#[cold] annotationsStreamDecoder mentioning the limitations around multiple frames (https://github.com/Sorseg)StreamDecoder API changes to get access to the inner parts (https://github.com/ifd3f)Nothing published for this version
Switching from thiserror to derive_more allows for no_std builds on stable rust
Switching from thiserror to derive_more allows for no_std builds on stable rust
Also the API for dictionaries has been revised, which required some breaking changes in that department
This release features no-std support with big thanks to @antangelo!
Also the API for dictionaries has been revised, which required some breaking changes in that department
This support features support for
This support features support for
In a big effort, @paolobarbolini and me improved the performance of decoding sequences. This also lead to a cool contribution of him to the standard l
With rust 1.53 came Vec::extend_from_within which allows to replace the last unsafe block in this codebase. It requires breaking compatibility with ol
With rust 1.53 came Vec::extend_from_within which allows to replace the last unsafe block in this codebase. It requires breaking compatibility with older rust verions though.
If you require an older rustc version you can still use v0.2.2. It is functionally equivalent but contains that last unsafe block.
This release just fixes some minor clippy lints that came up.
With rust 1.53 came Vec::extend_from_within which allows to replace the last unsafe block in this codebase. It requires breaking compatibility with ol
With rust 1.53 came Vec::extend_from_within which allows to replace the last unsafe block in this codebase. It requires breaking compatibility with older rust verions though.
If you require an older rustc version you can still use v0.2.2. It is functionally equivalent but contains that last unsafe block.
Shnatsel provided more thorough fuzzing.
Shnatsel provided more thorough fuzzing.
Removing the feature flags from twox-hash avoids pulling in the rand crate for normal builds. For testing it is still used.
Other deps have been updated to newer versions.
Added a new StreamingDecoder that wraps FrameDecoder and calls decode_blocks as necessary
Added a new StreamingDecoder that wraps FrameDecoder and calls decode_blocks as necessary
Also added more docs
Added test, did some last fixes and renamed to ruzstd to distinguish from the c-bindings
Added test, did some last fixes and renamed to ruzstd to distinguish from the c-bindings
One column per quarter.