Releases: gyscos/zstd-rs
Releases · gyscos/zstd-rs
v0.13.0
zstd-sys v2.0.9
- Fix build on wasm32 using default features
- Fix allocation issues in wasm32
- Use core::ffi rather than libc type aliases
- Include zstd error methods and types in experimental bindings
- Update bindgen from 0.64 to 0.68
zstd-safe v7.0.0
OutBuffer::dstis no longer public.- Added
OutBuffer::as_mut_ptrandOutBuffer::capacity. - Replaced libc with core::ffi for type aliases.
v0.11.0
Breaking changes
- Moves dictionary-training operations behind a
zdict_builderdefault feature.
Using a dictionary does not need this feature; only training/creating a new one does. - Disable exporting unrelated constants in zstd-sys.
Updates
Can now compile for wasm32-unknown-unknown target.
v0.10.0
Breaking changes
- Rename the
blockmodule tobulk. It was never really zstd' "block" API (which apparently might not even stay public forever), but just a way to compress data that fits entirely in-memory.- It was also refreshed to be on-par with the stream API regarding dictionaries and compression parameters.
Updates
- Update zstd to 1.5.2
- zstd_safe: Add
{C,D}Ctx::try_cloneto clone an existing context. Note that this only clones the compression parameters, not the current "stream context". As such, it should only be called before any data has been sent. - Documentation: add doc-cfg tags to indicate the features required for each type/function.
0.9.1
This bumps the zstd version to 1.5.1.
It also brings some improvements to the rust wrapper:
- Functions to turn on multithreaded compression are only available when the
zstdmtfeature is enabled - Implementations for arrays in zstd-safe use const-generics, and are now gated behind an
arraysfeature to allow compatibility with old compilers. - Add
set_pledged_src_sizeto encoders. This can improve the compression ratio, and makes the content size available in the compressed header. - Add an auto-flush wrapper to the push decoder.