Registry / utility / xz2
library0.1.7rscratesunverified

Rust bindings to liblzma providing Read/Write streams as well as low-level in-memory encoding/decoding.

# Cargo.toml [dependencies] xz2 = "0.1.7"
INSTALL
IMPORT
SIG · XZ2
X
xz2
utilityrustv0.1.7
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.

XzDecoder
use xz2::read::XzDecoder;

Decompress an xz file using XzDecoder.

use xz2::read::XzDecoder; use std::io::Read; fn main() -> Result<(), Box<dyn std::error::Error>> { let compressed = std::fs::File::open("file.xz")?; let mut decoder = XzDecoder::new(compressed); let mut decompressed = String::new(); decoder.read_to_string(&mut decompressed)?; println!("{}", decompressed); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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