Arkiv

Crates.io Docs.rs Crates.io Crates.io

Build Build Clippy

Arkiv is a convenience library to open, consult and extract archives of various format through a single interface.

Usage

```rust , no_run use arkiv::{Result, Archive};

fn main() -> Result<()> { // open the archive let mut archive = arkiv::Archive::open("path/to/archive.tar.xz")?;

// iterate over entries
for entry in archive.entries()? {
    println!("{entry}");
}

// extract the archive (perserves permission on unix targets)
archive.unpack("/tmp/")?;

Ok(())

} ```