-
-
Notifications
You must be signed in to change notification settings - Fork 313
/
deny.toml
87 lines (73 loc) · 2.67 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[graph]
# examples sometimes lag behind as they use higher level dependencies
# we exclude these from the check because they are not part of our
# actual dependency tree
exclude = ["kube-examples"]
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
# these are deprecated, but not super helpful for us
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html#the-version-field-optional
# remove them when we have to
yanked = "warn"
ignore = [
"RUSTSEC-2024-0384", # instant dep via unmaintained backoff dep
]
[licenses]
# See https://spdx.org/licenses/ for list of possible licenses
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
confidence-threshold = 1.0
# We are beholden to https://github.com/cncf/foundation/blob/master/allowed-third-party-license-policy.md#approved-licenses-for-allowlist
allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"LicenseRef-ring",
# Blanket addition for Unicode-3.0 libs for optional features (affects many deps, but it's a very clean license)
# https://github.com/unicode-org/icu4x/blob/main/LICENSE
"Unicode-3.0",
# Pulled in via aws_lc_rs when using rustls-tls and aws-lc-rs features
# https://openssl-library.org/source/license/index.html
"OpenSSL",
# Pulled in via hashbrown through its foldhash dependency
"Zlib",
]
exceptions = [
# The Unicode-DFS--2016 license is necessary for unicode-ident because they
# use data from the unicode tables to generate the tables which are
# included in the application. We do not distribute those data files so
# this is not a problem for us. See https://github.com/dtolnay/unicode-ident/pull/9/files
# for more details.
{ allow = ["Unicode-DFS-2016"], name = "unicode-ident" },
# Pulled in via hyper-rustls when using the webpki-roots feature,
# which is off by default.
{ allow = ["MPL-2.0"], name = "webpki-roots" },
]
[[licenses.clarify]]
name = "ring"
expression = "LicenseRef-ring"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = ["https://github.com/tyrone-wu/runtime-macros.git"]
[bans]
multiple-versions = "deny"
[[bans.skip]]
name = "rustls-native-certs"
[[bans.skip]]
# base64 did some annoying breaking changes
name = "base64"
[[bans.skip]]
# latest via openssl->hyper-openssl (we have latest)
# newer via tower-http (we have latest)
name = "bitflags"
[[bans.skip-tree]]
name = "windows-sys"
[[bans.skip]]
# different sources of miniz_oxide which users will not generally see
name = "miniz_oxide"