-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeny.toml
More file actions
57 lines (52 loc) · 2 KB
/
Copy pathdeny.toml
File metadata and controls
57 lines (52 loc) · 2 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 — run locally with `cargo deny check all`.
# CI runs the same check in the "Supply chain" job of .github/workflows/ci.yml.
[graph]
all-features = true
[advisories]
# Fail on any crate with a security advisory or an unmaintained warning.
# Add an entry here only with a comment explaining the exposure and the plan.
ignore = []
[licenses]
# Licenses accepted for this crate and its dependencies. Keep GPL-3.0-only for
# the template crate itself; the remaining entries cover compatible dependency
# licenses commonly encountered by Rust projects.
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"GPL-3.0-only",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-3.0",
"Zlib",
]
confidence-threshold = 0.9
[bans]
# Duplicate versions bloat build times; review them rather than ignoring them.
multiple-versions = "warn"
wildcards = "deny"
# ...except on a path dependency of a crate that is never published.
#
# `wildcards = "deny"` exists to stop an *unpinned registry* dependency, where
# "any version" means whatever crates.io serves next. A version-less `{ path =
# "api" }` is not that: it resolves to the copy in this repo, at this commit, and
# cannot float.
#
# The version keys were removed from the intra-workspace path deps deliberately
# (see the release workflow's bump step): they only ever existed to satisfy
# crates.io publishing, which this repo does not do, and a sibling requiring
# `^0.1.0` makes a `minor` release bump fail to resolve. cargo-deny scores those
# as wildcards, so without this the two requirements contradict each other.
#
# Scoped, not blanket: cargo-deny only applies it to crates marked
# `publish = false`, which every crate here is. Publishing one again would put
# this error back, correctly.
allow-wildcard-paths = true
# Crates that must never enter the dependency graph.
deny = []
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]