forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deny.toml
189 lines (164 loc) · 5.02 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
[bans]
multiple-versions = "deny"
# Do not add exemptions for duplicate dependencies! Duplicate dependencies slow
# down compilation, bloat the binary, and tickle race conditions in `cargo doc`
# (see rust-lang/cargo#3613). Submit PRs upstream to remove duplicated
# transitive dependencies. If necessary, use patch directives in the root
# Cargo.toml to point at a Materialize-maintained fork that avoids the
# duplicated transitive dependencies.
# 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"
# 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",
"env_logger",
"fail",
"globset",
"jsonpath_lib",
"mio",
"native-tls",
"opentls",
"os_info",
"postgres",
"pprof",
"prost-build",
# TODO(guswynn): switch to tracing in rdkafka
"rdkafka",
"reqwest",
"tokio-postgres",
"tokio-tungstenite",
"tokio-util",
"tracing-log",
"tracing",
"tungstenite",
"want",
"wasm-bindgen-backend",
]
# 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 = [
"aws-arn",
"aws-http",
"bindgen",
"bstr",
"clap",
"console",
"criterion",
"crossbeam-epoch",
"crossbeam-utils",
"fail",
"findshlibs",
"indicatif",
"mysql_async",
"mysql_common",
"native-tls",
"opentelemetry",
"procfs",
"prometheus",
"proptest",
"prost-build",
"rayon-core",
"reqwest",
"schannel",
"sharded-slab",
"tracing-core",
"tracing-log",
"tracing-subscriber",
"wasm-bindgen-backend",
"which",
]
# The `uncased` crate serves the same purpose as `unicase` and is more
# actively maintained.
[[bans.deny]]
name = "unicase"
wrappers = ["mime_guess"]
[licenses]
allow = [
"Apache-2.0",
"CC0-1.0",
"0BSD",
"BSD-2-Clause",
"BSD-3-Clause",
"ICU",
"ISC",
"MIT",
"Zlib",
]
copyleft = "deny"
private = { ignore = true }
[[licenses.clarify]]
name = "ring"
expression = "ISC"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[sources]
unknown-git = "deny"
unknown-registry = "deny"
allow-git = [
# Waiting for a new release of strip-ansi-escapes that avoids the indirect
# dependency on arrayvec v0.5.2 via a dependency on vte v0.10.1.
"https://github.com/alacritty/vte",
# Waiting for a new release that bumps to itoa v1.0.
# See: https://github.com/BurntSushi/rust-csv/issues/271
"https://github.com/BurntSushi/rust-csv.git",
# Waiting for an official release of criterion v0.4, which upgrades to clap v3.
"https://github.com/bheisler/criterion.rs.git",
# Waiting on v0.18.
# See: https://github.com/open-telemetry/opentelemetry-rust/pull/779
"https://github.com/MaterializeInc/opentelemetry-rust.git",
# Waiting on tracing-opentelemetry to upgrade to the as-yet unreleased
# v0.18 of opentelemetry.
"https://github.com/MaterializeInc/tracing.git",
# Waiting on https://github.com/tikv/pprof-rs/pull/158 to make it into a
# release.
"https://github.com/MaterializeInc/pprof-rs.git",
# Waiting on https://github.com/AltSysrq/proptest/pull/264.
"https://github.com/MaterializeInc/proptest.git",
# Waiting on https://github.com/sfackler/rust-postgres/pull/752.
"https://github.com/MaterializeInc/rust-postgres.git",
"https://github.com/MaterializeInc/rust-postgres-array.git",
# Waiting on https://github.com/MaterializeInc/serde-value/pull/35.
"https://github.com/MaterializeInc/serde-value.git",
# Waiting on https://github.com/hyperium/headers/pull/117 to make it into
# a release.
"https://github.com/hyperium/headers.git",
# Waiting on https://github.com/blackbeam/rust_mysql_common/pull/71 to make
# it into a release.
"https://github.com/blackbeam/rust_mysql_common.git",
# Waiting on https://github.com/snapview/tungstenite-rs/pull/299 to make
# it into a release.
"https://github.com/snapview/tungstenite-rs.git",
# Dependencies that we control upstream whose official releases we don't
# care about.
"https://github.com/frankmcsherry/columnation",
"https://github.com/TimelyDataflow/timely-dataflow",
"https://github.com/TimelyDataflow/differential-dataflow.git",
"https://github.com/fede1024/rust-rdkafka.git",
# Waiting on https://github.com/alexcrichton/ssh2-rs/pull/257
"https://github.com/MaterializeInc/ssh2-rs",
]