Registry / utility / lzma-rs

lzma-rs

JSON →
library0.3.0rscratesunverified

A codec for LZMA, LZMA2 and XZ written in pure Rust.

# Cargo.toml [dependencies] lzma-rs = "0.3.0"
INSTALL
IMPORT
SIG · LZMA-RS
L
lzma-rs
utilityrustv0.3.0
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.

xz_decompress
use lzma_rs::xz_decompress;

Decompresses XZ-compressed data.

use std::io::Cursor; fn main() -> Result<(), Box<dyn std::error::Error>> { let compressed = vec![]; // Replace with actual XZ data let mut output = Vec::new(); lzma_rs::xz_decompress(&mut Cursor::new(compressed), &mut output)?; println!("Decompressed {} bytes", output.len()); Ok(()) }
Debug
Known issues
gotchaThe crate is pure Rust and may be slower than C-based alternatives for large data.
fix
Consider using `liblzma` bindings if performance is critical.
affects: >=0.1.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lzma-rs — cargo add lzma-rs · libregistry