Cargo Features

[dependencies]
zip = { version = "2.2.0", default-features = false, features = ["aes-crypto", "chrono", "deflate", "deflate-flate2", "deflate-miniz", "deflate-zlib", "deflate-zlib-ng", "deflate-zopfli", "lzma", "unreserved", "xz", "bzip2", "time", "zstd", "deflate64"] }
aes-crypto default = aes, constant_time_eq, hmac, pbkdf2, rand, sha1, zeroize

Affects read::AesInfo

chrono
deflate default deflate-miniz? = deflate-flate2, deflate-zopfli

Enables rust_backend of flate2

deflate-flate2 deflate deflate-miniz? deflate-zlib? deflate-zlib-ng?

Enables any_impl of flate2

flate2:

note: this is not a real user-facing feature

deflate-miniz = deflate, deflate-flate2

DEPRECATED: previously enabled flate2/miniz_oxide which is equivalent to flate2/rust_backend

default = aes-crypto, bzip2, deflate, deflate64, lzma, time, xz, zstd

These default features are set whenever zip is added without default-features = false somewhere in the dependency tree.

deflate-zlib = deflate-flate2

Enables zlib of flate2

deflate-zlib-ng = deflate-flate2

Enables zlib-ng of flate2

deflate-zopfli deflate = zopfli
lzma default

Enables stream of lzma-rs

unreserved
xz default

Enables raw_decoder of lzma-rs

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

aes aes-crypto
bzip2 default
constant_time_eq aes-crypto
flate2 deflate deflate-flate2? deflate-zlib? deflate-zlib-ng?
hmac aes-crypto
pbkdf2 aes-crypto
rand aes-crypto
sha1 aes-crypto
time default
zeroize aes-crypto
zstd default
zopfli deflate-zopfli?
deflate64 default
lzma-rs lzma xz