-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathCargo.toml
More file actions
139 lines (126 loc) · 5.13 KB
/
Cargo.toml
File metadata and controls
139 lines (126 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[package]
name = "zip"
version = "8.5.1"
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"
keywords = ["zip", "archive", "compression"]
# Any change to rust-version must be reflected also in `README.md` and `.github/workflows/ci.yaml`.
# The MSRV policy is documented in `README.md`.
rust-version = "1.88"
categories = ["compression", "filesystem", "parser-implementations"]
description = "Library to support the reading and writing of zip files."
edition = "2024"
exclude = ["tests/**", "examples/**", ".github/**", "fuzz/**", ".amazonq/**", "benches/**", ".typos.toml"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
arbitrary = { version = "1.4", features = ["derive"], optional = true }
aes = { version = "0.8", optional = true }
bzip2 = { version = "0.6", default-features = false, optional = true }
chrono = { version = "^0.4.27", optional = true, default-features = false, features = ["std"] }
constant_time_eq = { version = "0.4", optional = true }
crc32fast = "1.5"
flate2 = { version = "1.1", default-features = false, optional = true }
hmac = { version = "0.12", optional = true, features = ["reset"] }
indexmap = "2"
jiff = { version = "^0.2.4", optional = true }
memchr = "2.7"
nt-time = { version = "0.13", default-features = false, optional = true }
ppmd-rust = { version = "1.4", optional = true }
pbkdf2 = { version = "0.12", optional = true }
sha1 = { version = "0.10", optional = true }
zeroize = { version = "1.8", optional = true }
zstd = { version = "^0.13.3", optional = true, default-features = false }
zopfli = { version = "^0.8.3", optional = true }
deflate64 = { version = "^0.1.10", optional = true }
lzma-rust2 = { version = "^0.16.1", optional = true, default-features = false, features = ["std", "encoder", "optimization", "xz"] }
bitstream-io = { version = "4.9", optional = true }
typed-path = "0.12"
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
getrandom = { version = "0.4", default-features = false, optional = true }
time = { version = "^0.3.47", default-features = false, optional = true, features = ["std"] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
getrandom = { version = "0.4", default-features = false }
# wasm32
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.4", default-features = false, features = ["wasm_js"], optional = true }
time = { version = "^0.3.47", default-features = false, optional = true, features = [
"std",
"wasm-bindgen"
] }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
getrandom = { version = "0.4", default-features = false, features = ["wasm_js"] }
wasm-bindgen-test = "^0.3.56"
[dev-dependencies]
bencher = "0.1"
getrandom = { version = "0.4", default-features = false }
walkdir = "2.5"
time = { version = "^0.3.47", features = ["formatting", "macros"] }
clap = { version = "^4.4.18", features = ["derive"] }
tempfile = "3.15"
rayon = "1.11"
[features]
_arbitrary = ["dep:arbitrary"]
aes-crypto = ["dep:aes", "dep:constant_time_eq", "getrandom/std", "dep:hmac", "dep:pbkdf2", "dep:sha1", "dep:zeroize"]
chrono = ["dep:chrono"]
_deflate-any = []
deflate = ["deflate-zopfli", "deflate-flate2-zlib-rs"]
# Pull in flate2, but don't choose a backend; useful if you want to choose your own flate2 backend
deflate-flate2 = ["_deflate-any", "dep:flate2"]
# Pull in flate2 and the fast zlib-rs backend; this is what most users will want
deflate-flate2-zlib-rs = ["deflate-flate2", "flate2/zlib-rs"]
# Pull in zopfli (write-only DEFLATE, slower than flate2 with better compression ratios)
deflate-zopfli = ["dep:zopfli", "_deflate-any"]
# Enables conversion to/from time::OffsetDateTime if `time` is also enabled, even though ZIP-file timestamps don't include a time zone.
# This feature will be removed in version 9.0.0.
deprecated-time = []
jiff-02 = ["dep:jiff"]
nt-time = ["dep:nt-time"]
lzma = ["dep:lzma-rust2"]
ppmd = ["dep:ppmd-rust"]
# This feature allows writing custom extra-data field IDs in file headers.
unreserved = []
xz = ["dep:lzma-rust2"]
_bzip2_any = []
bzip2 = ["dep:bzip2", "bzip2/default", "_bzip2_any"]
legacy-zip = ["bitstream-io"]
time = ["dep:time"]
default = [
"aes-crypto",
"bzip2",
"deflate64",
"deflate",
"lzma",
"ppmd",
"time",
"zstd",
"xz",
]
# The following features are not supported on wasm
bzip2-rs = ["dep:bzip2", "bzip2/bzip2-sys", "_bzip2_any"]
# Pull in flate2 and the zlib backend; only use this if you need a dynamically linked system zlib
deflate-flate2-zlib = ["deflate-flate2", "flate2/zlib"]
# Pull in flate2 and the zlib-ng backend; a modern fork of zlib
deflate-flate2-zlib-ng = ["deflate-flate2", "flate2/zlib-ng"]
# Pull in flate2 and the zlib-ng backend with a zlib-compatible API
deflate-flate2-zlib-ng-compat = ["deflate-flate2", "flate2/zlib-ng-compat"]
[[bench]]
name = "read_entry"
harness = false
[[bench]]
name = "read_metadata"
harness = false
[[bench]]
name = "read_many_entries"
harness = false
[[bench]]
name = "merge_archive"
harness = false