-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathdeny.toml
More file actions
54 lines (48 loc) · 1.32 KB
/
Copy pathdeny.toml
File metadata and controls
54 lines (48 loc) · 1.32 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
# cargo-deny configuration for the contracts workspace (contracts/predict-iq).
# Run locally: cargo deny check licenses
# CI: .github/workflows/license-check.yml
[licenses]
# Acceptable SPDX license identifiers.
# Any dependency under a license not listed here will fail CI.
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"CC0-1.0",
"Zlib",
"0BSD",
]
# Copyleft and network-copyleft licenses that must never appear.
deny = [
"GPL-2.0",
"GPL-3.0",
"LGPL-2.0",
"LGPL-2.1",
"LGPL-3.0",
"AGPL-3.0",
"OSL-3.0",
"EUPL-1.1",
"EUPL-1.2",
]
# Confidence threshold for license detection (0.0 – 1.0).
confidence-threshold = 0.8
[advisories]
# Use the RustSec advisory database.
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# cargo-audit handles vulnerability checks separately; deny advisories only
# for unmaintained crates to avoid duplicating audit output.
ignore = []
[bans]
# Prevent multiple versions of the same crate from being compiled unless
# explicitly allowed below.
multiple-versions = "warn"
[sources]
# Only allow crates from crates.io and the project's own git repos.
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]