Crate archiv

Crate archiv 

Source
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§

CompressItem
Concrete implementation of the compressed item writer
CompressOptions
Entry point for compression (writing)
CompressStream
Concrete implementation of the compressed stream writer
DecoderDictionary
Prepared dictionary for decompression
EncoderDictionary
Prepared dictionary for compression
ExpandItem
Concrete implementation of the compressed item reader
ExpandOptions
Entry point for expansion (reading)
ExpandStream
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

Traits§

Compress
Trait for writing compressed streams
Expand
Trait for reading from compressed streams
Item