#zstd #zstandard #compression

sys zstd-sys

Low-level bindings for the zstd compression library

21 stable releases

1.4.16+zstd.1.4.5 May 24, 2020
1.4.15+zstd.1.4.4 Nov 5, 2019
1.4.14+zstd.1.4.3 Oct 15, 2019
1.4.12+zstd.1.4.2 Jul 25, 2019
1.1.5-a Mar 24, 2017

#23 in Compression

Download history 7648/week @ 2020-02-09 8264/week @ 2020-02-16 10766/week @ 2020-02-23 10843/week @ 2020-03-01 14223/week @ 2020-03-08 13766/week @ 2020-03-15 14900/week @ 2020-03-22 13133/week @ 2020-03-29 11679/week @ 2020-04-05 13172/week @ 2020-04-12 15063/week @ 2020-04-19 14347/week @ 2020-04-26 14863/week @ 2020-05-03 15175/week @ 2020-05-10 14384/week @ 2020-05-17 14630/week @ 2020-05-24

57,881 downloads per month
Used in 116 crates (3 directly)

MIT/Apache

4.5MB
95K SLoC

BrightScript 73K SLoC // 0.2% comments Ruby HTML 9K SLoC // 0.0% comments Visual Basic 6K SLoC Coq 3K SLoC // 0.1% comments Scons 2.5K SLoC // 0.2% comments PureScript 1.5K SLoC // 0.1% comments Visual Studio Project 225 SLoC BASH 105 SLoC Logtalk 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

lib.rs:

Low-level bindings to the zstd library.

Dependencies