-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (52 loc) · 1.76 KB
/
Copy pathCargo.toml
File metadata and controls
57 lines (52 loc) · 1.76 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
[package]
name = "ocidir"
description = "A Rust library for reading and writing OCI (opencontainers) layout directories"
version = "0.8.0"
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://github.com/containers/ocidir-rs"
keywords = ["oci", "opencontainers", "docker", "podman", "containers"]
[dependencies]
camino = "1.0.4"
chrono = "0.4.19"
cap-std-ext = "5.0"
flate2 = { features = ["zlib"], default-features = false, version = "1.0.20" }
hex = "0.4.3"
openssl = "0.10.33"
serde = { features = ["derive"], version = "1.0.125" }
serde_json = "1.0.64"
tar = "0.4.38"
thiserror = "2"
# See https://github.com/youki-dev/oci-spec-rs/pull/288
oci-spec = "0.10.0"
zstd = { version = "0.13.2", optional = true }
canon-json = "0.2.0"
[dev-dependencies]
anyhow = "1.0.89"
cap-tempfile = "4.0"
clap = { version = "4", features = ["derive"] }
oci-distribution = "0.11"
reqwest = { version = "0.13", features = ["json"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
[features]
zstd = ["dep:zstd"]
zstdmt = ["zstd", "zstd/zstdmt"]
# Synchronized with https://github.com/bootc-dev/bootc/blob/main/Cargo.toml
[lints.rust]
# No unsafe code in this crate
unsafe_code = "forbid"
# Absolutely must handle errors
unused_must_use = "forbid"
# missing_docs is set per-target via #![deny(missing_docs)] in lib.rs
# because cargo lints apply to all targets including examples.
missing_debug_implementations = "deny"
# Feel free to comment this one out locally during development of a patch.
dead_code = "deny"
[lints.clippy]
# These should only be in local code
dbg_macro = "deny"
todo = "deny"
# These two are in my experience the lints which are most likely
# to trigger, and among the least valuable to fix.
needless_borrow = "allow"
needless_borrows_for_generic_args = "allow"