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
let archive: = download_my_archive?;
let target_dir = from; // 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.
extract?;
Features
All features are the same as the features of the zip
crate:
aes-crypto
: Support for AES encryption via the thezip
cratedeflate
: Support for the Deflate algorithm (miniz_oxide
rust-backend)deflate-miniz
: ^ dito (miniz
C-backend)deflate-zlib
: ^ dito (zlib
C-backend)unreserved
: Support for theunreserved
feature of thezip
cratebzip2
: Support for .bzip2 archives via thebzip2
cratetime
: Support for thetime
crate for thezip
cratezstd
: Support for thezstd
crate for thezip
cratedefault
: enables"aes-crypto", "bzip2", "deflate", "zstd"