#zip #archive #extract-archive

deprecated zip-extract

Deprecated, use the zip crate instead

11 unstable releases (3 breaking)

0.4.1 Jul 16, 2025
0.3.0 May 15, 2025
0.2.1 Aug 26, 2024
0.1.3 Jan 22, 2024
0.1.0 Jun 22, 2020

#18 in #extract-archive

Download history 18600/week @ 2025-07-17 16623/week @ 2025-07-24 17003/week @ 2025-07-31 22268/week @ 2025-08-07 22331/week @ 2025-08-14 25086/week @ 2025-08-21 24080/week @ 2025-08-28 27825/week @ 2025-09-04 25955/week @ 2025-09-11 26767/week @ 2025-09-18 30741/week @ 2025-09-25 35237/week @ 2025-10-02 27756/week @ 2025-10-09 38195/week @ 2025-10-16 28811/week @ 2025-10-23 31263/week @ 2025-10-30

132,222 downloads per month
Used in 57 crates (36 directly)

MIT license

180KB
115 lines

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.

Dependencies

~5.5–9MB
~153K SLoC