#low-level #statically #znippy #linked

zstd-sys-rs

Low-level Rust bindings to statically linked zstd v1.5.7

5 releases (stable)

1.5.10 Jul 25, 2025
1.5.7 Jul 24, 2025

#214 in FFI


Used in 5 crates (2 directly)

BSD-3-Clause

2.5MB
41K SLoC

C 41K SLoC // 0.2% comments GNU Style Assembly 390 SLoC // 0.2% comments Visual Studio Project 181 SLoC Rust 77 SLoC // 0.1% comments Visual Studio Solution 25 SLoC Batch 20 SLoC

zstd-sys-rs

Low-level Rust FFI bindings to a statically linked Zstandard (libzstd.a) library.
The Zstandard license is included in zstd.license.

This crate is used internally by the Znippy project.
Version numbering corresponds to the bundled Zstandard version.

🔨 Build

To build the static Zstandard library (libzstd.a) yourself:

git clone https://github.com/facebook/zstd.git
cd zstd
make lib-mt  # Build with multithread support (ZSTD_MULTITHREAD=ON)

✨ Heder

🧙‍♂Med Allfaderns visdom, kompression och korruptionsskydd.
⚡ Med hans blick över varje bit.

License

  • Zstandard is licensed under the BSD 3-Clause License — se filen zstd.license för fullständig information.
  • Denna crate är licensierad under MIT eller Apache-2.0 (ditt val).

Vänligen respektera dessa licenser vid användning och distribution av denna mjukvara.

Dependencies

~0–2.2MB
~43K SLoC