Expand description
use archiv::Compress;
let opts = archiv::CompressOptions::default();
let mut archiv = opts.stream_compress(io::stdout())?;
archiv.write_item(b"hello")?;
archiv.finish()?;
use archiv::Expand;
let opts = archiv::ExpandOptions::default();
let mut archiv = opts.stream(io::stdin().lock())?;
while let Some(mut item) = archiv.next_item()? {
let mut s = String::new();
item.read_to_string(&mut s)?;
println!("{s}");
}
Structs
- Concrete implementation of the compressed item writer
- Entry point for compression (writing)
- Concrete implementation of the compressed stream writer
- Prepared dictionary for decompression
- Prepared dictionary for compression
- Concrete implementation of the compressed item reader
- Entry point for expansion (reading)
- Concrete implementation of the compressed stream reader
- A decoder that decompress input data from another
Read
.
Enums
- Library specific errors we can encounter, typically around underlying or format errors
Traits
- Trait for writing compressed streams
- Trait for reading from compressed streams