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
# cargo-deny 配置文件
# 文档: https://embarkstudios.github.io/cargo-deny/
[]
= ["https://github.com/rustsec/advisory-db"]
= [
# 历史死代码 ignore 已清理(2026-07)— 下列 crate 已随依赖升级移除(cargo-deny advisory-not-detected):
# RUSTSEC-2023-0071 (rsa, sqlx→rsa) — sqlx 升级后 rsa 已移除
# RUSTSEC-2025-0111 (tokio-tar, testcontainers) — testcontainers 升级后已移除
# RUSTSEC-2025-0134 (rustls-pemfile, bollard) — bollard 升级后已移除
# RUSTSEC-2025-0141 (bincode, 直接依赖) — bincode 已替换/移除
# 新增 unmaintained ignore 请用 { id = "RUSTSEC-XXXX", reason = "..." } 格式
]
[]
= [
"MIT",
"MIT-0", # MIT No Attribution - OSI批准
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Zlib",
"CC0-1.0",
"BSL-1.0", # Boost Software License 1.0 - OSI批准, xxhash-rust使用
]
= 0.8
# 传递依赖许可证例外
[[]]
# rhexdump 是 aerospike-core 的传递依赖,GPL-3.0-or-later 为 copyleft 许可证
# 不能加入全局 allow,仅对此 crate 例外
= ["GPL-3.0-or-later"]
= "rhexdump"
[]
= "warn"
= "allow"
= "all"
= []
= []
[]
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
= []