forked from EmbarkStudios/cargo-deny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeny.toml
60 lines (54 loc) · 1.64 KB
/
deny.toml
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 is really only ever intended to run on the "normal" tier-1 targets
targets = [
{ triple = "x86_64-unknown-linux-gnu" },
{ triple = "aarch64-unknown-linux-gnu" },
{ triple = "x86_64-unknown-linux-musl" },
{ triple = "aarch64-apple-darwin" },
{ triple = "x86_64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
]
[advisories]
vulnerability = "deny"
unmaintained = "deny"
notice = "deny"
unsound = "deny"
ignore = [
# rmp-serde used by askalono for the cache files, these are always utf-8 so
# the advisory is not relevant
"RUSTSEC-2022-0092",
# This is kind of relevant since cargo-deny can do git operations via SSH
# from cargo, but cargo needs to update before we can
"RUSTSEC-2023-0003",
]
[bans]
multiple-versions = "deny"
deny = []
skip = [
# cargo depends on two versions of these crates
{ name = "hex", version = "=0.3.2" },
# cargo-lock uses this older version
{ name = "toml", version = "=0.5.11" },
]
skip-tree = [
# Sigh
{ name = "windows-sys", version = "=0.42" },
# cargo uses an old version
{ name = "toml_edit", version = "=0.15" },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
[sources.allow-org]
github = ["EmbarkStudios"]
[licenses]
unlicensed = "deny"
allow-osi-fsf-free = "neither"
copyleft = "deny"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.93
allow = ["Apache-2.0", "Apache-2.0 WITH LLVM-exception", "MIT", "MPL-2.0"]
exceptions = [
{ allow = ["Zlib"], name = "tinyvec" },
{ allow = ["Unicode-DFS-2016"], name = "unicode-ident" },
{ allow = ["BSD-3-Clause"], name = "subtle" },
]