-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeny.toml
More file actions
53 lines (48 loc) · 1.13 KB
/
deny.toml
File metadata and controls
53 lines (48 loc) · 1.13 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
# cargo-deny configuration for WOS project
# Enforces dependency policies and security standards
# Ban section - reject specific crates
[bans]
multiple-versions = "warn"
wildcards = "deny"
highlight = "all"
workspace-default-features = "allow"
# Deny git dependencies (prefer versioned releases)
[[bans.deny]]
name = "*"
# Uncomment to ban git dependencies:
# deny-multiple-versions = true
# Licenses section - enforce acceptable licenses
[licenses]
# We allow permissive licenses compatible with MIT
allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"ISC",
"Unicode-DFS-2016",
"Unlicense",
"CC0-1.0",
]
# Deny copyleft licenses
deny = [
"GPL-3.0",
"AGPL-3.0",
]
confidence-threshold = 0.8
exceptions = []
# Advisory section - security vulnerabilities
[advisories]
# Deny crates with security vulnerabilities
vulnerability = "deny"
unmaintained = "warn"
unsound = "warn"
yanked = "deny"
notice = "warn"
ignore = []
# Sources section - only allow crates.io
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []