-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
47 lines (39 loc) · 1.01 KB
/
Copy pathdeny.toml
File metadata and controls
47 lines (39 loc) · 1.01 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
# cargo-deny configuration (v2 format)
# Prevents hallucinated crates, vulnerable dependencies, and license issues
# Run with: cargo deny check
[advisories]
version = 2
ignore = [] # Advisory IDs to ignore
[licenses]
version = 2
allow = [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"CC0-1.0",
"Zlib",
"Unicode-3.0",
"Unicode-DFS-2016",
]
[bans]
# Prevent multiple versions of the same crate
multiple-versions = "warn"
wildcards = "deny" # No wildcard version specs
highlight = "all"
# Crates we explicitly allow (verified to exist on crates.io)
allow = []
# Crates we explicitly deny (known problematic or fake)
deny = [
# Add any crates discovered to be hallucinated or malicious
]
# Skip checking for specific crate duplicates
skip = []
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# We don't allow any git dependencies in production
# All deps must be from crates.io
allow-git = []