-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
81 lines (71 loc) · 2.08 KB
/
deny.toml
File metadata and controls
81 lines (71 loc) · 2.08 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
# cargo-deny configuration
# https://embarkstudios.github.io/cargo-deny/
[graph]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
# Advisories - check for known security vulnerabilities
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# How to handle unmaintained crates: all, workspace, transitive, none
unmaintained = "none"
yanked = "warn"
# Known issues we're tracking but can't fix yet
ignore = [
# rand 0.8.5 unsoundness requires a custom `log::Log` implementation that calls
# `rand::rng()` during trace-level logging. Hadrian uses `tracing-subscriber`, so the
# affected code path is unreachable. Pulled in transitively via augurs, kreuzberg, sqlx.
{ id = "RUSTSEC-2026-0097", reason = "unreachable: hadrian has no custom log::Log impl that invokes rand::rng()" },
]
# Licenses - ensure all dependencies use acceptable licenses
[licenses]
confidence-threshold = 0.8
allow = [
"MIT",
"MIT-0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"CC0-1.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"MPL-2.0",
"BSL-1.0",
"OpenSSL",
"bzip2-1.0.6",
"CDLA-Permissive-2.0",
]
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[[licenses.clarify]]
name = "webpki"
expression = "ISC"
license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]
# Bans - prevent certain crates or duplicate versions
[bans]
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
# Specific crate bans
deny = []
# Allow specific duplicates that are hard to avoid
skip = []
skip-tree = []
# Sources - ensure crates come from trusted sources
[sources]
unknown-registry = "deny"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]