zip-extract

Crates.iozip-extract
lib.rszip-extract
version0.4.1
created_at2020-06-22 19:27:54.876421+00
updated_at2025-07-16 16:20:53.603489+00
descriptionDeprecated, use the zip crate instead.
homepage
repositoryhttps://github.com/MCOfficer/zip-extract
max_upload_size
id256833
size227,542
M*C*O (MCOfficer)

documentation

README

Deprecated

zip-extract was born out of frustration with the zip crate's tedious extraction methods. Things have changed: ZipArchive::extract and ZipArchive::extract_unwrapped_root_dir provide the same functionality as zip-extract, without a wrapper crate. Please use them instead.


zip-extract

CI Crates.io Docs.rs

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

Usage

let archive: Vec<u8> = download_my_archive()?;
let target_dir = PathBuf::from("my_target_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.
zip_extract::extract(Cursor::new(archive), &target_dir, true)?;

Features

All features passed through to zip2.

Commit count: 38

cargo fmt