-
Notifications
You must be signed in to change notification settings - Fork 3
/
deny.toml
64 lines (53 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
64
# Project policies.
#
# These policies can be enforced using `cargo deny check`.
[advisories]
ignore = []
[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-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"MPL-2.0",
"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. We should either commit 100% to ring everywhere, or
# to native-tls everywhere, and not mix the two.
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 = [
# This never causes anything but portability misery.
{ name = "openssl-sys" },
# `serde_derive` shipped unreproducible binary builds for a while. See
# https://github.com/serde-rs/serde/issues/2538.
{ name = "serde_derive", version = ">1.0.171,<1.0.184" },
]
skip = [
# This seems to be included by portable-atomic 0.3.20 for some reason.
{ name = "portable-atomic", version = "1.6.0" },
]
skip-tree = [
# This has a bunch of old dependencies.
{ name = "bigtable_rs" },
]