#zstd #zstandard #compression

sys zstd-sys

Low-level bindings for the zstd compression library

20 stable releases

1.4.15+zstd.1.4.4 Nov 5, 2019
1.4.13+zstd.1.4.3 Aug 20, 2019
1.4.12+zstd.1.4.2 Jul 25, 2019
1.4.8+zstd.1.3.8 Jan 11, 2019
1.1.5-a Mar 24, 2017

#16 in Compression

Download history 2231/week @ 2019-07-23 3624/week @ 2019-07-30 2848/week @ 2019-08-06 2316/week @ 2019-08-13 2557/week @ 2019-08-20 2599/week @ 2019-08-27 2122/week @ 2019-09-03 3432/week @ 2019-09-10 2642/week @ 2019-09-17 4299/week @ 2019-09-24 3435/week @ 2019-10-01 3712/week @ 2019-10-08 3595/week @ 2019-10-15 5577/week @ 2019-10-22 5228/week @ 2019-10-29

14,787 downloads per month
Used in 60 crates (2 directly)

MIT/Apache

5MB
96K SLoC

C 75K SLoC // 0.2% comments Rust 8K SLoC // 0.0% comments Visual Studio Project 6K SLoC C++ 3K SLoC // 0.1% comments Shell 2.5K SLoC // 0.3% comments Python 1.5K SLoC // 0.1% comments Visual Studio Solution 224 SLoC Batch 114 SLoC Lua 69 SLoC // 0.0% 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

Dependencies