#zip #archive #extract #zip-extract

zip-extract

Archive extraction via zip-rs, automated

8 releases

new 0.2.3 May 5, 2025
0.2.2 Apr 4, 2025
0.2.1 Aug 26, 2024
0.1.3 Jan 22, 2024
0.1.0 Jun 22, 2020

#28 in Compression

Download history 5496/week @ 2025-01-18 7414/week @ 2025-01-25 6488/week @ 2025-02-01 7788/week @ 2025-02-08 6799/week @ 2025-02-15 7822/week @ 2025-02-22 6940/week @ 2025-03-01 5255/week @ 2025-03-08 9475/week @ 2025-03-15 9705/week @ 2025-03-22 12246/week @ 2025-03-29 48233/week @ 2025-04-05 34027/week @ 2025-04-12 39847/week @ 2025-04-19 26612/week @ 2025-04-26 36272/week @ 2025-05-03

142,609 downloads per month
Used in 62 crates (43 directly)

MIT license

175KB
114 lines

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

See extract for details.

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 folder, that folder's contents would be extracted instead.
zip_extract::extract(Cursor::new(archive), &target_dir, true)?;

Features

All features are passed through to zip2, refer to the documentation for defaults and a list of features.


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

~7.5MB
~133K SLoC