Registry / utility / zstd-safe

zstd-safe

JSON →
library7.2.4rscratesunverified

Safe low-level bindings for the zstd compression library.

# Cargo.toml [dependencies] zstd-safe = "7.2.4"
INSTALL
IMPORT
SIG · ZSTD-SAFE
Z
zstd-safe
utilityrustv7.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

zstd_safe
use zstd_safe;

Compresses and decompresses data using zstd.

use zstd_safe; fn main() { let compressed = zstd_safe::compress(b"Hello, world!", 3).unwrap(); let decompressed = zstd_safe::decompress(&compressed, 100).unwrap(); assert_eq!(&decompressed[..], b"Hello, world!"); }
Debug
Known issues
gotchaRequires zstd native library to be installed
fix
Install zstd via your package manager or use the 'zstd' crate which bundles it.
affects: >=1.0.0
Upgrade
Version history
7.2.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
38
Resources
zstd-safe — cargo add zstd-safe · libregistry