-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeny.toml
More file actions
60 lines (55 loc) · 1.97 KB
/
Copy pathdeny.toml
File metadata and controls
60 lines (55 loc) · 1.97 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
# cargo-deny configuration.
#
# Run locally with: cargo deny check
# The `licenses` section is the important one here: it enforces that every
# crate in the dependency graph uses a permissive license we've vetted, so a
# future dependency carrying a copyleft or unknown license fails CI instead of
# silently shipping in a statically linked binary.
[graph]
# Check dependencies for all the targets we actually build for. A crate that is
# only pulled in on, say, Windows still needs an acceptable license.
targets = [
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
"armv7-unknown-linux-gnueabihf",
]
all-features = true
[licenses]
# Every license below is permissive (attribution-only, no copyleft, no
# source-disclosure obligation). Keep this list in sync with what actually
# appears in the tree; adding a new one is a deliberate decision.
allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"Zlib",
"0BSD",
"Unicode-3.0",
"CDLA-Permissive-2.0",
# Wasmtime/Cranelift (`pac-engine-wasmtime` feature). The LLVM exception
# only *relaxes* Apache-2.0 (drops notice obligations for binary
# redistribution of compiler output); still permissive, no copyleft.
"Apache-2.0 WITH LLVM-exception",
]
# Crates must be at least this confident about their detected license.
confidence-threshold = 0.9
[bans]
# Not the focus here, but warn on multiple versions of the same crate so we
# notice dependency bloat. Duplicates are common and non-fatal.
multiple-versions = "warn"
wildcards = "allow"
[advisories]
# Security advisories are handled here too; fail on anything unmaintained or
# vulnerable so `cargo deny check` is a useful one-stop supply-chain gate.
yanked = "deny"
[sources]
# Only crates.io is expected.
unknown-registry = "deny"
unknown-git = "deny"