-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeny.toml
65 lines (52 loc) · 1.62 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
63
# Project policies.
#
# These policies can be enforced using `cargo deny check`.
[advisories]
ignore = [
# Ignore a nasty `localtime_r` and `setenv` race condition which can
# segfault if we try to read the localtime while someone is setting an env
# var.
#
# This can probably be fixed once
# https://github.com/chronotope/chrono/issues/602 has been addressed.
# "RUSTSEC-2020-0159",
# Also `localtime_r`.
"RUSTSEC-2020-0071",
]
[licenses]
# Don't allow code with an unclear license.
unlicensed = "deny"
# Don't allow "copylefted" licenses unless they're listed below.
copyleft = "deny"
# Allow common non-restrictive licenses.
allow = ["MIT", "Apache-2.0", "BSD-3-Clause", "CC0-1.0", "ISC", "OpenSSL", "Unicode-DFS-2016"]
# Many organizations ban AGPL-licensed code
# https://opensource.google/docs/using/agpl-policy/
deny = ["AGPL-3.0"]
[[licenses.clarify]]
# Ring has a messy license.
name = "ring"
expression = "ISC AND OpenSSL AND MIT"
license-files = [
{ path = "LICENSE", hash = 3171872035 },
]
[[licenses.clarify]]
name = "encoding_rs"
expression = "(MIT OR Apache-2.0) AND BSD-3-Clause AND CC0-1.0"
license-files = [
{ path = "COPYRIGHT", hash = 972598577 },
]
[bans]
# Warn about multiple versions of the same crate, unless we've indicated otherwise below.
multiple-versions = "warn"
deny = [
# OpenSSL has caused endless deployment and build problems, and we want
# nothing to do with it, in any version.
{ name = "openssl-sys" },
]
skip = [
# Older version used by chrono -> time 0.1.44.
{ name = "wasi", version = "0.10.0+wasi-snapshot-preview1" },
]
skip-tree = [
]