-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeny.toml
More file actions
57 lines (52 loc) · 1.37 KB
/
deny.toml
File metadata and controls
57 lines (52 loc) · 1.37 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
# cargo-deny configuration
# https://embarkstudios.github.io/cargo-deny/
[graph]
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "x86_64-apple-darwin" },
{ triple = "aarch64-apple-darwin" },
]
all-features = true
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
ignore = []
[licenses]
# Allow common open-source licenses used in the Rust ecosystem
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"MPL-2.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"CDLA-Permissive-2.0",
"CC0-1.0",
"0BSD",
"Unlicense",
"BSL-1.0",
]
# Allow licenses that are used by dependencies but with stricter conditions
confidence-threshold = 0.8
# Clarify licenses for crates that cargo-deny can't determine automatically
clarify = []
# Handle exceptions for specific crates if needed
exceptions = []
[bans]
# Deny multiple versions of the same crate (helps reduce build times and binary size)
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
# Allow specific duplicate versions if needed
skip = []
skip-tree = []
[sources]
# Only allow crates from crates.io and our own git repos
unknown-registry = "deny"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []