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§
- Compress
Item - Concrete implementation of the compressed item writer
- Compress
Options - Entry point for compression (writing)
- Compress
Stream - Concrete implementation of the compressed stream writer
- Decoder
Dictionary - Prepared dictionary for decompression
- Encoder
Dictionary - Prepared dictionary for compression
- Expand
Item - Concrete implementation of the compressed item reader
- Expand
Options - Entry point for expansion (reading)
- Expand
Stream - Concrete implementation of the compressed stream reader
- ZDecoder
- A decoder that decompress input data from another
Read.
Enums§
- Error
- Library specific errors we can encounter, typically around underlying or format errors