-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (50 loc) · 1.57 KB
/
Copy pathCargo.toml
File metadata and controls
58 lines (50 loc) · 1.57 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
[package]
name = "cerniera"
version = "0.2.0"
description = "A ZIP archive encoder that never copies your data"
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/M4SS-Code/cerniera"
rust-version = "1.88"
keywords = ["zip", "archive", "streaming", "zero-copy"]
categories = ["compression", "encoding", "no-std"]
[features]
default = ["std"]
std = ["crc32fast/std"]
jiff = ["dep:jiff"]
[dependencies]
bytes = { version = "1", default-features = false }
crc32fast = { version = "1.2", default-features = false }
futures-core = { version = "0.3", default-features = false }
jiff = { version = "0.2", default-features = false, optional = true }
pin-project-lite = "0.2"
[dev-dependencies]
flate2 = "1"
futures-util = { version = "0.3", default-features = false }
jiff = "0.2"
memmap2 = "0.9"
rustix = { version = "1", features = ["fs"] }
tokio = { version = "1", features = ["macros", "rt", "io-util", "fs"] }
zip = { version = "8", default-features = false, features = ["deflate-flate2"] }
[package.metadata.docs.rs]
all-features = true
[lints.rust]
unsafe_code = "deny"
unreachable_pub = "deny"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
module_name_repetitions = "allow"
await_holding_refcell_ref = "deny"
map_unwrap_or = "warn"
needless_lifetimes = "warn"
needless_raw_string_hashes = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
str_to_string = "warn"
clone_on_ref_ptr = "warn"
[[example]]
name = "sendfile_zip"
required-features = ["jiff"]
[[example]]
name = "deflate_zip"
required-features = ["jiff"]