Source code
Revision control
Copy as Markdown
Other Tools
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.73.0"
name = "zip"
version = "2.1.3"
authors = [
"Mathijs van de Nes <git@mathijs.vd-nes.nl>",
"Marli Frost <marli@frost.red>",
"Ryan Levick <ryan.levick@gmail.com>",
"Chris Hennick <hennickc@amazon.com>",
]
build = "src/build.rs"
exclude = [
"tests/**",
"examples/**",
".github/**",
"fuzz/**",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Library to support the reading and writing of zip files.
"""
readme = "README.md"
keywords = [
"zip",
"archive",
"compression",
]
license = "MIT"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "zip"
path = "src/lib.rs"
[[bench]]
name = "merge_archive"
path = "benches/merge_archive.rs"
harness = false
[[bench]]
name = "read_entry"
path = "benches/read_entry.rs"
harness = false
[[bench]]
name = "read_metadata"
path = "benches/read_metadata.rs"
harness = false
[dependencies.aes]
version = "0.8.4"
optional = true
[dependencies.bzip2]
version = "0.4.4"
optional = true
[dependencies.chrono]
version = "0.4.38"
optional = true
[dependencies.constant_time_eq]
version = "0.3.0"
optional = true
[dependencies.crc32fast]
version = "1.4.2"
[dependencies.deflate64]
version = "0.1.8"
optional = true
[dependencies.displaydoc]
version = "0.2.4"
default-features = false
[dependencies.flate2]
version = "1.0.30"
optional = true
default-features = false
[dependencies.hmac]
version = "0.12.1"
features = ["reset"]
optional = true
[dependencies.indexmap]
version = "2"
[dependencies.lzma-rs]
version = "0.3.0"
optional = true
default-features = false
[dependencies.memchr]
version = "2.7.2"
[dependencies.pbkdf2]
version = "0.12.2"
optional = true
[dependencies.rand]
version = "0.8.5"
optional = true
[dependencies.sha1]
version = "0.10.6"
optional = true
[dependencies.thiserror]
version = "1.0.61"
[dependencies.time]
version = "0.3.36"
features = ["std"]
optional = true
default-features = false
[dependencies.zeroize]
version = "1.8.1"
features = ["zeroize_derive"]
optional = true
[dependencies.zopfli]
version = "0.8.1"
optional = true
[dependencies.zstd]
version = "0.13.1"
optional = true
default-features = false
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.bencher]
version = "0.1.5"
[dev-dependencies.clap]
version = "=4.4.18"
features = ["derive"]
[dev-dependencies.getrandom]
version = "0.2.15"
features = [
"js",
"std",
]
[dev-dependencies.tempdir]
version = "0.3.7"
[dev-dependencies.time]
version = "0.3.36"
features = [
"formatting",
"macros",
]
default-features = false
[dev-dependencies.walkdir]
version = "2.5.0"
[features]
_all-features = []
_deflate-any = []
aes-crypto = [
"aes",
"constant_time_eq",
"hmac",
"pbkdf2",
"sha1",
"rand",
"zeroize",
]
chrono = ["chrono/default"]
default = [
"aes-crypto",
"bzip2",
"deflate64",
"deflate",
"lzma",
"time",
"zstd",
]
deflate = [
"flate2/rust_backend",
"deflate-zopfli",
"deflate-flate2",
]
deflate-flate2 = [
"flate2/any_impl",
"_deflate-any",
]
deflate-miniz = [
"deflate",
"deflate-flate2",
]
deflate-zlib = [
"flate2/zlib",
"deflate-flate2",
]
deflate-zlib-ng = [
"flate2/zlib-ng",
"deflate-flate2",
]
deflate-zopfli = [
"zopfli",
"_deflate-any",
]
lzma = ["lzma-rs/stream"]
unreserved = []
[target."cfg(any(all(target_arch = \"arm\", target_pointer_width = \"32\"), target_arch = \"mips\", target_arch = \"powerpc\"))".dependencies.crossbeam-utils]
version = "0.8.20"
[target."cfg(fuzzing)".dependencies.arbitrary]
version = "1.3.2"
features = ["derive"]