forked from Zious11/wirerust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
57 lines (52 loc) · 1.78 KB
/
Copy pathdeny.toml
File metadata and controls
57 lines (52 loc) · 1.78 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 (LESSON-P2.06).
#
# Supply-chain policy for wirerust. Three concerns:
# - licenses: only permissive open-source licenses compatible
# with this crate's MIT license
# - bans: no duplicate / yanked dependencies
# - sources: only crates.io for now (no git or local-path deps)
#
# The advisories section is handled by the separate `cargo audit` job
# in CI (rustsec/audit-check) so this config focuses on policy rather
# than vuln scanning.
[graph]
# Match the project's stable-channel target.
all-features = false
no-default-features = false
[licenses]
# Permissive licenses compatible with MIT. If a transitive dep
# carries a different license, this list needs updating — explicitly
# rather than silently waving it through.
allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unicode-3.0",
]
# Per-crate overrides for crates whose published license metadata is
# ambiguous but whose actual LICENSE file is OK. (Currently empty;
# add entries here rather than relaxing the `allow` list.)
exceptions = []
confidence-threshold = 0.93
[bans]
multiple-versions = "warn"
wildcards = "deny"
highlight = "all"
# Permit a handful of common version-duplication cases (e.g. nested
# rand 0.7 vs 0.8 through different transitive paths). Add entries
# here only with a one-line comment justifying why the duplicate is
# unavoidable.
skip = []
skip-tree = []
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
[advisories]
# Advisory checks live in the `cargo audit` job; cargo-deny's
# `advisories` table is intentionally minimal here so the two jobs
# do not double-report the same finding.
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
yanked = "warn"