zip-extract

zip-extract's primary goal is simple: Automate tedious zip extraction. Ever wanted to just unpack an archive somewhere? Well, here you go.

Usage

```rust let archive: Vec = downloadmyarchive()?; let targetdir = PathBuf::from("mytarget_dir"); // Doesn't need to exist

// The third parameter allows you to strip away toplevel directories. // If archive contained a single directory, its contents would be extracted instead. zipextract::extract(Cursor::new(archive), &targetdir, true)?; ```

Features

All features are passed through to zip and flate2. They are:

The default is bzip2 and deflate.