-
Notifications
You must be signed in to change notification settings - Fork 79
/
deny.toml
62 lines (58 loc) · 1.68 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
61
62
[bans]
multiple_versions = "deny"
deny = [
# You can never be too sure
{ name = "openssl" },
]
skip = [
# rand depends on a multiple versions of rand_core...
{ name = "rand_core", version = "=0.3.1" },
{ name = "rand_core", version = "=0.4.0" },
# rmp depends on an old version of num-traits, just ignore
# for now
{ name = "num-traits", version = "=0.1.43" },
# askalono 0.3.0 uses an ancient regex version which pulls
# in other duplicates
{ name = "regex", version = "=0.2.11" },
{ name = "regex-syntax", version = "=0.5.6" },
{ name = "aho-corasick", version = "=0.6.10" },
]
[licenses]
unlicensed = "deny"
unknown = "deny"
# We want really high confidence when inferring licenses from text
confidence_threshold = 0.93
allow = [
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause",
"BSL-1.0",
"CC0-1.0",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
"Unlicense",
"Zlib",
]
skip = [
# For illustration purposes:
# ring has a rather complicated LICENSE file due to reasons spelled out
# in said LICENSE file, but is basically OpenSSL for older parts, and ISC
# for newer parts
#{ name = "ring", licenses = [] },
]
[[licenses.ignore]]
name = "crossbeam-queue"
license_files = [
# A BSD-2-Clause-FreeBSD license, but it has the lowest confidence score
# of all the current licenses, so ignore it so we can raise the threshold
{ path = "LICENSE-THIRD-PARTY", hash = 0x7e40bc60 },
]
[[licenses.ignore]]
name = "adler32"
license_files = [
# Zlib with a slightly lower score (at least with vanilla askalono 0.3.0)
{ path = "LICENSE-ZLIB", hash = 0x35858a2e },
]