| Crates.io | zip-extract |
| lib.rs | zip-extract |
| version | 0.4.1 |
| created_at | 2020-06-22 19:27:54.876421+00 |
| updated_at | 2025-07-16 16:20:53.603489+00 |
| description | Deprecated, use the zip crate instead. |
| homepage | |
| repository | https://github.com/MCOfficer/zip-extract |
| max_upload_size | |
| id | 256833 |
| size | 227,542 |
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's primary goal is simple: Automate tedious zip extraction. Ever wanted to just unpack an archive somewhere? Well, here you go.
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)?;
All features passed through to zip2.