archive-reader

ArchiveReader is a library that wraps partial read functions from libarchive. It provides rustic interface over listing file names and reading given files within archives.

toml [dependencies] archive-reader = "0.2"

Example

```rust use archivereader::Archive; use archivereader::error::Result;

fn main() -> Result<()> { let mut archive = Archive::open("somearchive.zip"); let filenames = archive .blocksize(1024 * 1024) .listfilenames()? .collect::>>()?; let mut content = vec![]; let _ = archive.readfile(&file_names[0], &mut content)?; println!("content={:?}", content); Ok(()) } ```

Features

Getting Started

This section talks about compiling this project

Prerequisites:

Compile

shell cd SOME_DIR git clone git@github.com:YaxinCheng/archive-reader.git cd archive-reader cargo build --release