Some checks are pending
CI / Build and test : macOS-latest, msrv (push) Waiting to run
CI / Build and test : macOS-latest, nightly (push) Waiting to run
CI / Build and test : macOS-latest, stable (push) Waiting to run
CI / Build and test : ubuntu-latest, msrv (push) Waiting to run
CI / Build and test : ubuntu-latest, nightly (push) Waiting to run
CI / Build and test : ubuntu-latest, stable (push) Waiting to run
CI / Build and test : windows-latest, msrv (push) Waiting to run
CI / Build and test : windows-latest, nightly (push) Waiting to run
CI / Build and test : windows-latest, stable (push) Waiting to run
CI / Build and test --all-features: macOS-latest, msrv (push) Waiting to run
CI / Build and test --all-features: macOS-latest, nightly (push) Waiting to run
CI / Build and test --all-features: macOS-latest, stable (push) Waiting to run
CI / Build and test --all-features: ubuntu-latest, msrv (push) Waiting to run
CI / Build and test --all-features: ubuntu-latest, nightly (push) Waiting to run
CI / Build and test --all-features: ubuntu-latest, stable (push) Waiting to run
CI / Build and test --all-features: windows-latest, msrv (push) Waiting to run
CI / Build and test --all-features: windows-latest, nightly (push) Waiting to run
CI / Build and test --all-features: windows-latest, stable (push) Waiting to run
CI / Build and test --no-default-features: macOS-latest, msrv (push) Waiting to run
CI / Build and test --no-default-features: macOS-latest, nightly (push) Waiting to run
CI / Build and test --no-default-features: macOS-latest, stable (push) Waiting to run
CI / Build and test --no-default-features: ubuntu-latest, msrv (push) Waiting to run
CI / Build and test --no-default-features: ubuntu-latest, nightly (push) Waiting to run
CI / Build and test --no-default-features: ubuntu-latest, stable (push) Waiting to run
CI / Build and test --no-default-features: windows-latest, msrv (push) Waiting to run
CI / Build and test --no-default-features: windows-latest, nightly (push) Waiting to run
CI / Build and test --no-default-features: windows-latest, stable (push) Waiting to run
CI / cargo_fmt (push) Waiting to run
CI / check_minimal_versions (push) Waiting to run
CI / style_and_docs () (push) Waiting to run
CI / style_and_docs (--all-features) (push) Waiting to run
CI / style_and_docs (--no-default-features) (push) Waiting to run
CI / fuzz_read (push) Blocked by required conditions
CI / fuzz_read_with_no_features (push) Blocked by required conditions
CI / fuzz_write (push) Blocked by required conditions
CI / fuzz_write_with_no_features (push) Blocked by required conditions
DevSkim / DevSkim (push) Waiting to run
Release / Release-plz (push) Waiting to run
115 lines
3.5 KiB
TOML
115 lines
3.5 KiB
TOML
[package]
|
|
name = "zip"
|
|
version = "2.2.2"
|
|
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>",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/zip-rs/zip2.git"
|
|
keywords = ["zip", "archive", "compression"]
|
|
rust-version = "1.73.0"
|
|
description = """
|
|
Library to support the reading and writing of zip files.
|
|
"""
|
|
edition = "2021"
|
|
exclude = ["tests/**", "examples/**", ".github/**", "fuzz_read/**", "fuzz_write/**"]
|
|
build = "src/build.rs"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[workspace.dependencies]
|
|
time = { version = "0.3.1", default-features = false }
|
|
|
|
[dependencies]
|
|
## wasm dependencies start ##
|
|
wasm-bindgen = { version = "0.2" }
|
|
js-sys = { version = "0.3" }
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
bzip2 = { path = "./bzip2-rs", optional = true, default-features = false, features = ["libbz2-rs-sys"] }
|
|
zstd = { version = "0.13", optional = true, default-features = false, features = ["wasm"] }
|
|
## wasm dependencies end ##
|
|
|
|
aes = { version = "0.8", optional = true }
|
|
# bzip2 = { version = "0.4.3", optional = true }
|
|
chrono = { version = "0.4", optional = true }
|
|
constant_time_eq = { version = "0.3", optional = true }
|
|
crc32fast = "1.4"
|
|
displaydoc = { version = "0.2", default-features = false }
|
|
flate2 = { version = "1.0", default-features = false, optional = true }
|
|
indexmap = "2"
|
|
hmac = { version = "0.12", optional = true, features = ["reset"] }
|
|
memchr = "2.7"
|
|
pbkdf2 = { version = "0.12", optional = true }
|
|
rand = { version = "0.8", optional = true }
|
|
sha1 = { version = "0.10", optional = true }
|
|
thiserror = "2"
|
|
time = { workspace = true, optional = true, features = [
|
|
"std",
|
|
] }
|
|
zeroize = { version = "1.8", optional = true, features = ["zeroize_derive"] }
|
|
# zstd = { version = "0.13", optional = true, default-features = false }
|
|
zopfli = { version = "0.8", optional = true }
|
|
deflate64 = { version = "0.1.9", optional = true }
|
|
lzma-rs = { version = "0.3", default-features = false, optional = true }
|
|
|
|
[target.'cfg(any(all(target_arch = "arm", target_pointer_width = "32"), target_arch = "mips", target_arch = "powerpc"))'.dependencies]
|
|
crossbeam-utils = "0.8.20"
|
|
|
|
[target.'cfg(fuzzing)'.dependencies]
|
|
arbitrary = { version = "1.3.2", features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
bencher = "0.1.5"
|
|
getrandom = { version = "0.2.15", features = ["js", "std"] }
|
|
walkdir = "2.5"
|
|
time = { workspace = true, features = ["formatting", "macros"] }
|
|
anyhow = "1.0.60"
|
|
clap = { version = "=4.4.18", features = ["derive"] }
|
|
tempfile = "3.8"
|
|
|
|
[features]
|
|
aes-crypto = ["aes", "constant_time_eq", "hmac", "pbkdf2", "sha1", "rand", "zeroize"]
|
|
chrono = ["chrono/default"]
|
|
_deflate-any = []
|
|
_all-features = [] # Detect when --all-features is used
|
|
deflate = ["flate2/rust_backend", "deflate-zopfli", "deflate-flate2"]
|
|
deflate-flate2 = ["_deflate-any"]
|
|
# DEPRECATED: previously enabled `flate2/miniz_oxide` which is equivalent to `flate2/rust_backend`
|
|
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 = []
|
|
xz = ["lzma-rs/raw_decoder"]
|
|
default = [
|
|
"aes-crypto",
|
|
"bzip2",
|
|
"deflate64",
|
|
"deflate",
|
|
"lzma",
|
|
"time",
|
|
"zstd",
|
|
"xz",
|
|
]
|
|
|
|
[[bench]]
|
|
name = "read_entry"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "read_metadata"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "merge_archive"
|
|
harness = false
|
|
|