-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
63 lines (58 loc) · 2.36 KB
/
Copy pathdeny.toml
File metadata and controls
63 lines (58 loc) · 2.36 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
# Configuration for cargo-deny: https://embarkstudios.github.io/cargo-deny
#
# Run locally with `cargo deny check`. This single tool replaces cargo-audit and
# cargo-license, covering four checks against the dependency graph:
# - advisories: security vulnerabilities (RustSec) plus yanked/unmaintained crates
# - licenses: every dependency's license must be on the allowlist below
# - bans: unwanted, banned, or duplicated crates
# - sources: crates may only come from trusted registries/git sources
[graph]
# Check every feature, mirroring the `--all-features` used elsewhere in CI so
# optionally-enabled dependencies aren't skipped.
all-features = true
[advisories]
# Vulnerabilities and unsound advisories always fail the check; yanked and
# unmaintained crates warn. Silence a specific finding by adding its advisory ID
# (or `crate@version`) here, ideally with a reason.
ignore = [
# { id = "RUSTSEC-0000-0000", reason = "why this is acceptable" },
]
[licenses]
# Only these licenses are accepted anywhere in the tree. This crate is
# `MIT OR Apache-2.0`; the others are the common permissive licenses found across
# typical Rust dependencies. Add SPDX identifiers as your tree grows.
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Zlib",
]
# Confidence required when a license is inferred from a LICENSE file (0.8 is the
# default; raise it to be stricter about fuzzy matches).
confidence-threshold = 0.8
# Don't warn about allowed licenses that the (currently small) dependency tree
# happens not to use yet — the allowlist above is intentionally forward-looking.
unused-allowed-license = "allow"
# Per-crate exceptions, for a license you accept for one crate but not globally:
exceptions = [
# { crate = "ring", allow = ["OpenSSL"] },
]
[bans]
# Duplicate versions of a crate only warn — they're common and often outside your
# control. Wildcard (`*`) version requirements are denied.
multiple-versions = "warn"
wildcards = "deny"
# Crates that must never appear in the tree:
deny = [
# { crate = "openssl", use-instead = "rustls" },
]
[sources]
# Crates may only come from crates.io. Add entries to `allow-git` to permit
# specific git dependencies.
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]