Skip to content

Releases: gyscos/zstd-rs

v0.13.0

11 Oct 15:46
Compare
Choose a tag to compare
  • Bump zstd-safe to 7.0.0.
  • Fix potential buffer overflow (#231).
  • Some doc improvement.

zstd-sys v2.0.9

11 Oct 15:47
Compare
Choose a tag to compare
  • 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

11 Oct 15:47
Compare
Choose a tag to compare
  • OutBuffer::dst is no longer public.
  • Added OutBuffer::as_mut_ptr and OutBuffer::capacity.
  • Replaced libc with core::ffi for type aliases.

v0.11.0

09 Mar 20:51
Compare
Choose a tag to compare

Breaking changes

  • Moves dictionary-training operations behind a zdict_builder default 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

27 Jan 14:26
Compare
Choose a tag to compare

Breaking changes

  • Rename the block module to bulk. 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_clone to 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

03 Jan 17:46
Compare
Choose a tag to compare

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 zstdmt feature is enabled
  • Implementations for arrays in zstd-safe use const-generics, and are now gated behind an arrays feature to allow compatibility with old compilers.
  • Add set_pledged_src_size to 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.

0.4.22

27 Dec 22:04
Compare
Choose a tag to compare
  • Update to zstd-1.3.8
  • Add read-based stream encoder and write-based stream decoder.

0.4.21

19 Oct 22:04
Compare
Choose a tag to compare

Update to zstd 1.3.7.

0.4.17

21 Dec 09:52
Compare
Choose a tag to compare
  • Update zstd to 1.3.3
  • Should be more easily detected by cmake (see #36)

0.4.15

10 Oct 00:25
Compare
Choose a tag to compare
  • Update zstd to 1.3.2