-
Notifications
You must be signed in to change notification settings - Fork 468
/
deny.toml
272 lines (242 loc) · 8.88 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
[bans]
multiple-versions = "deny"
# Try to avoid exemptions for duplicate dependencies! Duplicate dependencies
# slow down compilation, bloat the binary, and tickle race conditions in `cargo
# doc` (see rust-lang/cargo#3613).
#
# If possible, submit PRs upstream to remove duplicated transitive dependencies.
# You can use patch directives in the root Cargo.toml to point at a
# Materialize-maintained fork that avoids the duplicated transitive
# dependencies.
skip = [
# arrayvec had a significant API change in 0.7
{ name = "arrayvec", version = "0.5.2" },
# One-time exception for base64 due to its prevalence in the crate graph.
{ name = "base64", version = "0.13.1" },
{ name = "base64", version = "0.21.5" },
# `syn` is a core crate that a huge part of the ecosystem either directly, or
# transitively depends on. They just released v2.0 which not all crates have
# migrated to yet.
{ name = "syn", version = "1.0.107" },
# `tokio` depends on a newer version of socket2, we are okay with _temporarily_
# allowing these duplicate dependencies until the rest of the ecosystem catches
# up.
{ name = "socket2", version = "0.4.9" },
# held back by regex 1.7.0 depended on by arrow-string and bindgen
{ name = "regex-syntax", version = "0.6.28" },
# held back by thrift 0.17.0 depended on by parquet 51.0.0
{ name = "ordered-float", version = "2.10.1" },
# held back by 'ciborium' which is depended on by 'criterion'
{ name = "half", version = "1.6.0" },
{ name = "windows-sys", version = "0.42.0" },
{ name = "windows_aarch64_gnullvm", version = "0.42.0" },
{ name = "windows_aarch64_msvc", version = "0.42.0" },
{ name = "windows_i686_gnu", version = "0.42.0" },
{ name = "windows_i686_msvc", version = "0.42.0" },
{ name = "windows_x86_64_gnullvm", version = "0.42.0" },
{ name = "windows_x86_64_gnu", version = "0.42.0" },
{ name = "windows_x86_64_msvc", version = "0.42.0" },
{ name = "windows-targets", version = "0.48.0" },
{ name = "windows-sys", version = "0.48.0" },
{ name = "windows_aarch64_gnullvm", version = "0.48.0" },
{ name = "windows_aarch64_msvc", version = "0.48.0" },
{ name = "windows_i686_gnu", version = "0.48.0" },
{ name = "windows_i686_msvc", version = "0.48.0" },
{ name = "windows_x86_64_gnullvm", version = "0.48.0" },
{ name = "windows_x86_64_gnu", version = "0.48.0" },
{ name = "windows_x86_64_msvc", version = "0.48.0" },
{ name = "windows-sys", version = "0.52.0" },
# Newer versions of crates like `tempfile` are held back by crates like `atty`.
# This is very Unfortunate as we don't actually use these platforms.
{ name = "hermit-abi", version = "0.1.6" },
{ name = "hermit-abi", version = "0.2.6" },
{ name = "redox_syscall", version = "0.2.10" },
{ name = "linux-raw-sys", version = "0.3.4" },
{ name = "rustix", version = "0.38.21" },
# Will require updating many crates
{ name = "indexmap", version = "1.9.1" },
# Required by indexmap 1.9.1, which is depended on by many things
{ name = "hashbrown", version = "0.12.3" },
# Had to update `tower-http` to `0.4.3` to fix the `base64` duplicate version
# but this introduced a new dependency on `bitflags 2.3.3` but all the rest of
# our crates use `bitflags 1.3.2`
# TODO: fork `tower-http` and swap to use older bitflags
{ name = "bitflags", version = "1.3.2" },
# TODO(parkmycar): In a followup/stacked PR, get rid of these duplicates.
{ name = "bstr", version = "0.2.14" },
{ name = "regex-automata", version = "0.1.9" },
# TODO: Required for Rust nightly upgrade
{ name = "portable-atomic", version = "0.3.20" },
# TODO: Required for Rust nightly upgrade
{ name = "http", version = "0.2.9" },
# TODO: Required for Rust nightly upgrade
{ name = "http-body", version = "0.4.5" },
# The most recent version of `skeptic` depends on 0.14.2 and the latest
# version of `guppy` that uses `0.14` is very old.
{ name = "cargo_metadata", version = "0.14.2" },
# There are many external crates that rely on 0.10.5. Upgrading them should
# be its own PR.
{ name = "itertools", version = "0.10.5" },
# A few crates -> `num_enum_derive` -> `proc-macro-crate` -> `toml_edit v0.19.14`.
{ name = "toml_edit", version = "0.19.14" },
# There are some crates in our dependency tree that have yet to upgrade to
# `hyper 1.*`. As of now these are:
# * `aws-config`
# * `aws-smithy-runtime`
# * `eventsource-client`
# * `launchdarkly-server-sdk`
# Until they upgrade we'll need to duplicate some related hyper deps.
{ name = "hyper", version = "0.14.27" },
{ name = "h2", version = "0.3.26" },
{ name = "hyper-tls", version = "0.5.0" },
{ name = "hyper-timeout", version = "0.4.1" },
{ name = "tokio-tungstenite", version = "0.21.0" },
{ name = "tungstenite", version = "0.21.0" },
# `axum 0.7.5` depends on both `sync_wrapper 1.*` and `axum-core 0.4.3`.
# The latter depends on `sync_wrapper 0.1.*`.
{ name = "sync_wrapper", version = "0.1.2" },
]
# Use `tracing` instead.
[[bans.deny]]
name = "env_logger"
# Use `md-5` instead, which is part of the RustCrypto ecosystem.
[[bans.deny]]
name = "md5"
# Use `sha1` instead, which the RustCrypto ecosystem recently took control of.
# `sha-1` is the older and now deprecated name.
[[bans.deny]]
name = "sha-1"
# Use `prost` or `protobuf-native` instead.
[[bans.deny]]
name = "protobuf"
wrappers = ["protobuf-parse"]
# Strum has suspect code quality and includes many unneeded features. Use
# more targeted enum macro crates, e.g. `enum-kinds`.
[[bans.deny]]
name = "strum"
[[bans.deny]]
name = "strum-macros"
[[bans.deny]]
name = "log"
wrappers = [
"deadpool-postgres",
"eventsource-client",
"fail",
"globset",
"launchdarkly-server-sdk",
"launchdarkly-server-sdk-evaluation",
"mio",
"native-tls",
"os_info",
"postgres",
"pprof",
"prost-build",
"protobuf-parse",
# TODO(guswynn): switch to tracing in rdkafka
"rdkafka",
"reqwest",
"tokio-postgres",
"tokio-tungstenite",
"tracing-log",
"tracing",
"tungstenite",
"want",
"wasm-bindgen-backend",
"workspace-hack",
]
# We prefer the system's native TLS or OpenSSL to Rustls, since they are more
# mature and more widely used.
[[bans.deny]]
name = "rustls"
# once_cell is going to be added to std, and doesn't use macros
# Unfortunately, its heavily used, so we have lots of exceptions.
[[bans.deny]]
name = "lazy_static"
wrappers = [
"bindgen",
"bstr",
"console",
"criterion",
"dynfmt",
"findshlibs",
"insta",
"jsonpath-rust",
"launchdarkly-server-sdk",
"launchdarkly-server-sdk-evaluation",
"mysql_async",
"mysql_common",
"native-tls",
"prometheus",
"proptest",
"rayon-core",
"schannel",
"sharded-slab",
"which",
]
# The `uncased` crate serves the same purpose as `unicase` and is more
# actively maintained.
[[bans.deny]]
name = "unicase"
wrappers = [
"mime_guess",
"pulldown-cmark",
]
# We shouldn't manually vendor `protoc`, instead rely on it through `mz-build-tools`.
[[bans.deny]]
name = "protobuf-src"
wrappers = [
"mz-build-tools",
"protobuf-native",
]
[advisories]
version = 2
ignore = [
# Consider switching `yaml-rust` to the actively maintained `yaml-rust2` fork of the original project
"RUSTSEC-2024-0320",
# Consider `std::io::IsTerminal` or `is-terminal` instead of `atty` (unmaintained)
"RUSTSEC-2021-0145",
# Consider `encoding_rs` instead of `encoding` (unmaintained)
"RUSTSEC-2021-0153",
# proc-macro-error is unmaintained, possible alternative: proc-macro-error2
"RUSTSEC-2024-0370",
# lexical-core: Multiple soundness issues, depends on arrow upgrading
"RUSTSEC-2023-0086",
# Use standard library's IsTerminal trait instead of `atty` (unmaintained)
"RUSTSEC-2024-0375",
]
# Must be manually kept in sync with about.toml.
# See: https://github.com/EmbarkStudios/cargo-about/issues/201
[licenses]
version = 2
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"CC0-1.0",
"0BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"ICU",
"ISC",
"MIT",
"MPL-2.0",
"Zlib",
"Unicode-DFS-2016",
]
# copyleft is denied by default
private = { ignore = true }
[[licenses.clarify]]
name = "ring"
expression = "ISC"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[sources]
unknown-git = "deny"
unknown-registry = "deny"
# Do not allow non-MaterializeInc Git repositories here! Git repositories must
# be owned by the MaterializeInc organization so that maintainership is shared
# amongst Materialize employees and so that historical versions of Materialize
# remain buildable even if upstream Git repositories disappear. If you don't
# have permissions to create a fork in the MaterializeInc organization, ask in
# #eng-infra on Slack.
allow-org = { github = ["MaterializeInc"] }