-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathdeny.toml
More file actions
64 lines (59 loc) · 2.27 KB
/
Copy pathdeny.toml
File metadata and controls
64 lines (59 loc) · 2.27 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
58
59
60
61
62
63
64
# cargo-deny configuration for Moistello Contracts
# See: https://embarkstudios.github.io/cargo-deny/
[graph]
targets = [
{ triple = "wasm32-unknown-unknown" },
{ triple = "x86_64-unknown-linux-gnu" },
]
# ── Advisories ────────────────────────────────────────────────────────────────
# Reject any crate with a known security advisory.
[advisories]
version = 2
# No explicit db-path — cargo-deny uses the default location. Setting a custom
# db-path (e.g. ~/.cargo/advisory-db) requires the runner to manage it, which
# is fragile in CI.
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "deny"
notice = "warn"
ignore = []
# ── Licenses ──────────────────────────────────────────────────────────────────
# Only allow OSI-approved permissive licenses.
[licenses]
version = 2
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"ISC",
"Unicode-DFS-2016",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
]
deny = []
copyleft = "deny"
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 0.8
exceptions = []
# ── Bans ──────────────────────────────────────────────────────────────────────
# Prevent duplicate versions of the same crate (unless explicitly allowed).
[bans]
multiple-versions = "warn"
wildcards = "deny"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
allow = []
deny = []
skip = []
skip-tree = []
# ── Sources ───────────────────────────────────────────────────────────────────
# Only allow dependencies from crates.io (no git or local path deps in prod).
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []