-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
114 lines (110 loc) · 3.89 KB
/
deny.toml
File metadata and controls
114 lines (110 loc) · 3.89 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
# =============================================================================
# cargo-deny configuration for NeuronPrompter.
#
# Audits dependency licenses against an allow-list, checks for known security
# advisories from the RustSec database, and detects duplicate crate versions.
# =============================================================================
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
ignore = [
# GTK3/glib "unmaintained" advisories -- these crates are transitive
# dependencies of tao 0.34 and wry 0.54 (native GUI feature). The gtk-rs
# team migrated to gtk4-rs; the GTK3 bindings still work but receive no
# new features. Tracking upstream tao/wry migration to gtk4.
# Reviewed: 2026-03-25
"RUSTSEC-2024-0370",
"RUSTSEC-2024-0411",
"RUSTSEC-2024-0412",
"RUSTSEC-2024-0413",
"RUSTSEC-2024-0414",
"RUSTSEC-2024-0415",
"RUSTSEC-2024-0416",
"RUSTSEC-2024-0417",
"RUSTSEC-2024-0418",
"RUSTSEC-2024-0419",
"RUSTSEC-2024-0420",
"RUSTSEC-2024-0436",
]
[licenses]
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"ISC",
"BSD-2-Clause",
"BSD-3-Clause",
"Unicode-3.0",
"Zlib",
"BSL-1.0",
"Unicode-DFS-2016",
"OpenSSL",
"MPL-2.0",
"CDLA-Permissive-2.0",
]
confidence-threshold = 0.8
[bans]
multiple-versions = "deny"
# Workspace path dependencies use wildcard versions by design.
wildcards = "allow"
workspace-default-features = "allow"
external-default-features = "allow"
skip = [
# Widely-used crates that legitimately have multiple major versions in the
# dependency tree due to transitive dependencies from tao, wry, gtk, and
# windows ecosystem crates. Entries are the result of `cargo deny check bans`.
{ crate = "syn@1" },
{ crate = "bitflags@1" },
{ crate = "[email protected]" },
# hashbrown 0.15 is pulled by multiple transitive dependencies at different
# minor versions (e.g. indexmap, dashmap). Both 0.14 and 0.15 coexist in
# the resolved dependency tree.
{ crate = "[email protected]" },
# GTK/tao/wry ecosystem pulls in older versions alongside newer ones
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
# Crypto/random crates with split major versions across dependencies
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
# Macro/build utility crates with coexisting major versions
{ crate = "[email protected]" },
{ crate = "proc-macro-crate@1" },
{ crate = "proc-macro-crate@2" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
# thiserror v1 pulled by transitive dependencies alongside v2
{ crate = "thiserror@1" },
{ crate = "thiserror-impl@1" },
# Windows platform crates with coexisting versions from tao/wry/windows
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "r-efi@5" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
{ crate = "[email protected]" },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []