zstd-rs

A rust binding for the zstd compression library.

MIT License

Downloads
254.3M
Stars
518
Committers
56
zstd-rs - zstd-sys v2.0.9 Latest Release

Published by gyscos about 1 year ago

  • 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-rs - zstd-safe v7.0.0

Published by gyscos about 1 year ago

  • OutBuffer::dst is no longer public.
  • Added OutBuffer::as_mut_ptr and OutBuffer::capacity.
  • Replaced libc with core::ffi for type aliases.
zstd-rs - v0.13.0

Published by gyscos about 1 year ago

zstd-rs - v0.11.0

Published by gyscos over 2 years ago

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.

zstd-rs -

Published by gyscos over 2 years ago

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.
zstd-rs -

Published by gyscos almost 3 years ago

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.
zstd-rs -

Published by gyscos almost 6 years ago

  • Update to zstd-1.3.8
  • Add read-based stream encoder and write-based stream decoder.
zstd-rs -

Published by gyscos about 6 years ago

Update to zstd 1.3.7.

zstd-rs -

Published by gyscos almost 7 years ago

  • Update zstd to 1.3.3
  • Should be more easily detected by cmake (see #36)
zstd-rs -

Published by gyscos about 7 years ago

  • Update zstd to 1.3.2
zstd-rs -

Published by gyscos over 7 years ago

  • Fix compilation with bindgen feature.
  • Update generated bindings.
zstd-rs -

Published by gyscos over 7 years ago

  • Update zstd to 1.3.0
zstd-rs -

Published by gyscos over 7 years ago

  • Update zstd-safe to 1.2.1
    • Implements Send for streams, and Send + Sync for dictionaries
    • stream::Encoder, stream::Decoder, block::Compressor and block::Decompressor now implement Send.
zstd-rs -

Published by gyscos over 7 years ago

  • Add Send implementations for streams
  • Add Send and Sync implementations for dictionaries
  • Add no_std to the crate (compiling the C library may still require allocation).
zstd-rs -

Published by gyscos over 7 years ago

Update zstd to 1.2

zstd-rs -

Published by gyscos over 7 years ago

  • Fix possible data corruption issue with interrupted streams
  • Add compatibility with tokio-io (behind the tokio feature)
zstd-rs -

Published by gyscos over 7 years ago

  • Add non-consuming stream::Encoder<W>::try_finish(&mut self) -> Result<W, (Self, io::Error)>
    • (Useful for non-blocking IO when the final writes are interrupted)
zstd-rs -

Published by gyscos over 7 years ago

Fix compilation on rust stable

zstd-rs -

Published by gyscos over 7 years ago

Move low-level bindings to separate zstd-sys crate

zstd-rs -

Published by gyscos over 7 years ago

Update zstd to 1.1.4