Registry / utility / libdeflater

libdeflater

JSON →
library1.25.2rscratesunverified

Bindings to libdeflate for DEFLATE (de)compression exposed as non-streaming buffer operations. Contains bindings for raw deflate, zlib, and gzip data.

# Cargo.toml [dependencies] libdeflater = "1.25.2"
INSTALL
IMPORT
SIG · LIBDEFLATER
L
libdeflater
utilityrustv1.25.2
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.

Compressor
use libdeflater::Compressor;

Compress data using libdeflate.

use libdeflater::Compressor; fn main() { let compressor = Compressor::new(6); let input = b"Hello, world!"; let compressed = compressor.compress(input).unwrap(); println!("Compressed {} bytes", compressed.len()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.25.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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