-
Notifications
You must be signed in to change notification settings - Fork 16
/
deny.toml
117 lines (101 loc) · 2.49 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
all-features = true
[advisories]
unmaintained = "deny"
vulnerability = "warn"
yanked = "deny"
ignore = [
"RUSTSEC-2024-0320", # [W-6647] config uses a version of yaml-rust that is now marked as unmaintained
"RUSTSEC-2021-0127", # [W-9317] transitively needed by enclave-tools.
"RUSTSEC-2024-0370", # [W-9604] utoipa uses proc-macro-error that which is marked as unmaintained.
]
# Partnerships can use openssl-sys because it's a dev-dependency
[[bans.deny]]
name = "openssl-sys"
wrappers = [
"curl", "curl-sys", # api/partnerships/wallet-partnerships/aws_utils
"openssl" # enclave-tools
]
[licenses]
allow = [
"0BSD",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"CC0-1.0",
"ISC",
"MIT",
"MITNFA",
"MPL-2.0",
"OpenSSL",
"Unicode-DFS-2016",
"Zlib",
]
allow-osi-fsf-free = "either"
copyleft = "deny"
default = "deny"
unlicensed = "deny"
deny = [
"GPL-1.0",
"GPL-2.0",
"GPL-3.0",
"LGPL-2.0",
"LGPL-2.1",
"LGPL-3.0",
"AGPL-1.0",
"AGPL-3.0",
]
confidence-threshold = 0.8
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL" # https://github.com/briansmith/ring/blob/main/LICENSE
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[licenses.private]
ignore = true
[bans]
multiple-versions = "warn"
# Prefer using `md-5`, part of the RustCrypto ecosystem.
[[bans.deny]]
name = "md5"
# Prefer using `sha1` as the RustCrypto ecosystem recently took control of.
# `sha-1` is the older and now deprecated name.
[[bans.deny]]
name = "sha-1"
# Prefer using `prost` or `protobuf-native` instead.
[[bans.deny]]
name = "protobuf"
# Use `dyn-clone` instead as this one is out of date
[[bans.deny]]
name = "dyn-clonable"
# Use `ulid` instead
[[bans.deny]]
name = "uuid"
wrappers = [
"aws-runtime",
"launchdarkly-server-sdk",
"moka",
"partnerships-lib", # TODO[W-5649]: Update partnerships-lib to not use uuid
"state",
"ulid",
]
# Prefer `once_cell` as it is being added to std and doesn't use macros,
# Unfortunately, `lazy_static` is heavily used, so we have lots of exceptions.
[[bans.deny]]
name = "lazy_static"
wrappers = [
"aws-http",
"aws-smithy-client",
"bindgen",
"config",
"console",
"httpmock",
"launchdarkly-server-sdk",
"launchdarkly-server-sdk-evaluation",
"mockall",
"prost-build",
"sharded-slab",
"tracing-test",
"tracing-test-macro",
"x509-parser",
]