#zstd #zstandard #compression

sys zstd-sys

Low-level bindings for the zstd compression library

28 stable releases

1.6.1+zstd.1.5.0 Jun 9, 2021
1.5.0+zstd.1.4.9 Apr 1, 2021
1.4.20+zstd.1.4.9 Mar 3, 2021
1.4.19+zstd.1.4.8 Dec 20, 2020
1.1.5-a Mar 24, 2017

#82 in Compression

Download history 55539/week @ 2021-04-08 54414/week @ 2021-04-15 55238/week @ 2021-04-22 55206/week @ 2021-04-29 57315/week @ 2021-05-06 54512/week @ 2021-05-13 53027/week @ 2021-05-20 50071/week @ 2021-05-27 58324/week @ 2021-06-03 58088/week @ 2021-06-10 60974/week @ 2021-06-17 62744/week @ 2021-06-24 62880/week @ 2021-07-01 66140/week @ 2021-07-08 70177/week @ 2021-07-15 67378/week @ 2021-07-22

229,765 downloads per month
Used in 264 crates (4 directly)

MIT/Apache

2.5MB
48K SLoC

C 38K SLoC // 0.2% comments Rust 10K SLoC // 0.0% comments Shell 70 SLoC // 0.1% comments

zstd-sys

This is the low-level auto-generated binding to the zstd library. You probably don't want to use this library directly; instead, look at zstd-rs or zstd-safe.

Compile it yourself

zstd is included as a submodule. To get everything during your clone, use:

git clone https://github.com/gyscos/zstd-rs --recursive

Or, if you cloned it without the --recursive flag, call this from inside the repository:

git submodule update --init

Then, running cargo build in this directory should take care of building the C library and linking to it.

Build-time bindgen

This library includes a pre-generated bindings.rs file. You can also generate new bindings at build-time, using the bindgen feature:

cargo build --features bindgen

lib.rs:

Low-level bindings to the zstd library.

Dependencies