akv

Crates.ioakv
lib.rsakv
version0.1.0
sourcesrc
created_at2023-01-07 03:45:50.109108
updated_at2023-01-07 03:45:50.109108
descriptionSafe bindings for libarchive with minimum overhead
homepagehttps://github.com/patr0nus/akv
repositoryhttps://github.com/patr0nus/akv
max_upload_size
id752758
size34,401
BranchSeer (branchseer)

documentation

README

akv

Safe bindings for libarchive with minimum overhead

Example

use akv::reader::ArchiveReader;

let io_reader = std::fs::File::open("tests/simple.zip")?;
let mut archive_reader = ArchiveReader::open_io(io_reader)?;

while let Some(entry) = archive_reader.next_entry()? {
    println!("Entry name: {}", entry.pathname_utf8()?);
    let entry_reader = entry.into_reader();
    println!(
        "Entry content: {}",
        std::io::read_to_string(entry_reader)?
    );
}
std::io::Result::Ok(())
Commit count: 45

cargo fmt