Expand description
A pure Rust implementation of the Zstandard compression format.
§Decompression
The decoding module contains the code for decompression.
Decompression can be achieved by using the decoding::StreamingDecoder
or the more low-level decoding::FrameDecoder
§Compression
The encoding module contains the code for compression.
Compression can be achieved by using the encoding::compress/encoding::compress_to_vec
functions or encoding::FrameCompressor
§turnloop-zstd-decoder
A publishable fork of ruzstd 0.8.3, by Moritz Borcherding, under the upstream MIT license. Upstream: https://github.com/KillingSpark/zstd-rs. The fork retains sequence-table allocations across decoded frames. HTTP uses it on WASI and browser wasm; the library is portable Rust on native targets too.
Use decoding::FrameDecoder and retain it across reset calls. Warm up with the
largest expected frame shape; growth may allocate. The public decoder API follows
ruzstd 0.8.3. No consuming-workspace patch is required.
See UPSTREAM.md for provenance and the complete fork scope. The upstream README
is preserved as UPSTREAM-README.md. The Rust standard library’s internal build feature is
not exposed by this standalone package.
Re-exports§
pub use io_std as io;