-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeny.toml
More file actions
117 lines (101 loc) · 2.44 KB
/
deny.toml
File metadata and controls
117 lines (101 loc) · 2.44 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
115
116
117
# SPDX-FileCopyrightText: 2025 jerusdp
#
# SPDX-License-Identifier: MIT OR Apache-2.0
# Configuration for cargo-deny
# See: https://embarkstudios.github.io/cargo-deny/
[advisories]
# Security vulnerability database checks
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "deny"
notice = "warn"
ignore = [
# Add specific advisory IDs to ignore here if needed
# Example: "RUSTSEC-2020-0001",
]
[licenses]
# License compatibility checks
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
]
deny = [
"GPL-2.0",
"GPL-3.0",
"AGPL-3.0",
]
copyleft = "deny"
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 0.8
# Private workspace members (not published to crates.io)
[[licenses.clarify]]
name = "mock-verifier"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-cli"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-default"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-enterprise"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-native-only"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-no-default"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-rustls-only"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-suite-trace"
expression = "MIT OR Apache-2.0"
license-files = []
[[licenses.clarify]]
name = "test-wasm"
expression = "MIT OR Apache-2.0"
license-files = []
[bans]
# Dependency bans and duplicate detection
multiple-versions = "warn"
wildcards = "warn"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
allow = []
deny = [
# Ban known problematic crates
# { name = "openssl-sys", wrappers = [] },
]
# Skip checking for these crates (workspace members, test-only deps)
skip = []
skip-tree = []
[sources]
# Crate source restrictions
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
[sources.allow-org]
# Allow dependencies from trusted GitHub organizations
github = []
gitlab = []
bitbucket = []