-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeny.toml
More file actions
67 lines (61 loc) · 3.55 KB
/
Copy pathdeny.toml
File metadata and controls
67 lines (61 loc) · 3.55 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
65
66
67
# Copyright (c) 2025 Erick Bourgeois, firestoned
# SPDX-License-Identifier: Apache-2.0
#
# cargo-deny configuration — enforces license allow-list, security advisories,
# and dependency source restrictions. Runs in CI on every PR and push to main.
# See https://embarkstudios.github.io/cargo-deny/ for the full schema.
[graph]
all-features = true
# ─────────────────────────────────────────────────────────────────────────────
# Licenses — allow-list of SPDX identifiers acceptable for any dependency.
# Anything outside this list fails the check; widen deliberately with a
# comment explaining the provenance of the new license.
# ─────────────────────────────────────────────────────────────────────────────
[licenses]
version = 2
confidence-threshold = 0.9
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Unicode-3.0",
"Zlib",
"CC0-1.0",
"MPL-2.0",
"OpenSSL",
]
# Crates that do not publish a license in Cargo.toml but are known-safe.
# Keep this list as short as possible; justify any addition.
[[licenses.exceptions]]
allow = ["Unicode-DFS-2016"]
name = "unicode-ident"
# ─────────────────────────────────────────────────────────────────────────────
# Advisories — RustSec advisory-db findings. Same source as cargo-audit.
# ─────────────────────────────────────────────────────────────────────────────
[advisories]
version = 2
yanked = "deny"
ignore = []
# ─────────────────────────────────────────────────────────────────────────────
# Bans — prevent multiple versions of the same crate and wildcard deps.
# Multiple versions start as `warn` to avoid breaking CI on transitive pulls
# we do not control; tighten to `deny` once the tree is clean.
# ─────────────────────────────────────────────────────────────────────────────
[bans]
multiple-versions = "warn"
wildcards = "deny"
highlight = "all"
# ─────────────────────────────────────────────────────────────────────────────
# Sources — only allow the official crates.io registry. Prevents silent
# introduction of dependencies from alternate registries or unauthenticated
# git URLs.
# ─────────────────────────────────────────────────────────────────────────────
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []