Registry / other / ruzstd

ruzstd

JSON →
library0.8.3rscratesunverified

A decoder for the zstd compression format.

# Cargo.toml [dependencies] ruzstd = "0.8.3"
INSTALL
IMPORT
SIG · RUZSTD
R
ruzstd
otherrustv0.8.3
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.

FrameDecoder
use ruzstd::decoding::FrameDecoder;

Decode a zstd compressed file.

use ruzstd::decoding::FrameDecoder; use std::io::Read; fn main() -> Result<(), Box<dyn std::error::Error>> { let compressed = std::fs::read("file.zst")?; let mut decoder = FrameDecoder::new(); let mut decompressed = Vec::new(); decoder.read_to_end(&mut decompressed)?; Ok(()) }
Debug
Known issues
gotchaRequires the 'std' feature for I/O operations.
fix
Enable the 'std' feature in Cargo.toml: ruzstd = { version = "0.8", features = ["std"] }
affects: >=0.8.0
Upgrade
Version history
0.8.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ruzstd — cargo add ruzstd · libregistry