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
# ThreatFlux cargo-deny Configuration
# License and security policy for dependencies
# Version: 1.0.0
# https://embarkstudios.github.io/cargo-deny/
[]
# Target platforms to check
= [
"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",
]
= true
# =============================================================================
# Licenses
# =============================================================================
[]
# Confidence threshold for license detection
= 0.8
# Allow specific licenses (using SPDX identifiers)
= [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"CDLA-Permissive-2.0",
"ISC",
"Zlib",
"CC0-1.0",
"Unicode-DFS-2016",
"Unicode-3.0",
"MPL-2.0",
"BSL-1.0",
"0BSD",
]
# Private crates can have any license
= { = true }
# Clarify licenses for specific crates if needed
[[]]
= "ring"
= "MIT AND ISC AND OpenSSL"
= [{ = "LICENSE", = 0xbd0eed23 }]
# =============================================================================
# Bans
# =============================================================================
[]
# Lint level for multiple versions of the same crate
= "warn"
# Wildcards in version specs
= "warn"
# Highlight which crate pulled in duplicates
= "all"
# Workspace handling
= "allow"
= "allow"
# =============================================================================
# Advisories
# =============================================================================
[]
# Advisory database
= "~/.cargo/advisory-db"
= ["https://github.com/rustsec/advisory-db"]
# How to handle yanked crates
= "warn"
# Ignore specific advisories (add with justification)
= [
# Example: "RUSTSEC-2020-0001", # Reason for ignoring
]
# =============================================================================
# Sources
# =============================================================================
[]
# Lint level for unknown registries
= "deny"
# Lint level for unknown git sources
= "warn"
# Allowed registries
= ["https://github.com/rust-lang/crates.io-index"]
# Allowed git sources (add organization repos as needed)
= []
[]
# Allow git sources from specific organizations
= ["threatflux"]