forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
319 lines (295 loc) · 10.6 KB
/
Cargo.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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
[workspace]
members = [
"src/adapter",
"src/adapter-types",
"src/alloc",
"src/alloc-default",
"src/arrow-util",
"src/audit-log",
"src/avro",
"src/aws-util",
"src/aws-secrets-controller",
"src/balancerd",
"src/build-info",
"src/build-tools",
"src/ccsr",
"src/catalog",
"src/catalog-debug",
"src/cloud-api",
"src/cluster",
"src/clusterd",
"src/cluster-client",
"src/compute",
"src/compute-client",
"src/compute-types",
"src/controller",
"src/controller-types",
"src/dyncfg",
"src/dyncfgs",
"src/environmentd",
"src/expr",
"src/expr-parser",
"src/expr-test-util",
"src/fivetran-destination",
"src/frontegg-auth",
"src/frontegg-client",
"src/frontegg-mock",
"src/http-util",
"src/interchange",
"src/kafka-util",
"src/lowertest",
"src/lowertest-derive",
"src/metabase",
"src/mysql-util",
"src/mz",
"src/lsp-server",
"src/metrics",
"src/npm",
"src/orchestrator",
"src/orchestrator-kubernetes",
"src/orchestrator-process",
"src/orchestrator-tracing",
"src/ore",
"src/ore-proc",
"src/persist",
"src/persist-cli",
"src/persist-client",
"src/persist-proc",
"src/txn-wal",
"src/persist-types",
"src/pgcopy",
"src/pgrepr",
"src/pgrepr-consts",
"src/pgtest",
"src/pgtz",
"src/pgwire",
"src/pgwire-common",
"src/postgres-client",
"src/postgres-util",
"src/proc",
"src/prof",
"src/prof-http",
"src/proto",
"src/repr",
"src/repr-test-util",
"src/rocksdb",
"src/rocksdb-types",
"src/s3-datagen",
"src/secrets",
"src/segment",
"src/server-core",
"src/service",
"src/ssh-util",
"src/sql",
"src/sql-lexer",
"src/sql-parser",
"src/sql-pretty",
"src/sqllogictest",
"src/storage",
"src/storage-client",
"src/storage-controller",
"src/storage-operators",
"src/storage-types",
"src/testdrive",
"src/timely-util",
"src/timestamp-oracle",
"src/tls-util",
"src/tracing",
"src/transform",
"src/cloud-resources",
"src/walkabout",
"src/workspace-hack",
"test/metabase/smoketest",
"test/test-util",
"src/regexp",
"misc/bazel/cargo-gazelle",
]
# Here we should specify our high level binaries to prevent folks from needing to take extra steps
# like updating git submodules when building the workspace without a target specified.
#
# Crates we want to make sure are _excluded_ are:
# * `fivetran-destination` since it depends on the `fivetran-sdk` submodule.
#
default-members = [
"src/balancerd",
"src/catalog-debug",
"src/clusterd",
"src/environmentd",
"src/kafka-util",
"src/mz",
"src/persist-cli",
"src/sqllogictest",
"src/testdrive",
"test/metabase/smoketest",
"src/pgtest",
"misc/bazel/cargo-gazelle",
]
exclude = [
# All WASM crates are split into their own workspace to avoid needles cache
# invalidations for the core Mz crates.
"misc/wasm/*",
]
# Use Cargo's new feature resolver, which can handle target-specific features.
# Explicit opt-in is required even with the 2021 edition because we use a
# virtual workspace.
# See: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
resolver = "2"
[workspace.package]
edition = "2021"
rust-version = "1.79.0"
[profile.dev]
split-debuginfo = "unpacked"
[profile.dev.package]
# Compile the backtrace crate and its dependencies with all optimizations, even
# in dev builds, since otherwise backtraces can take 20s+ to symbolize. With
# optimizations enabled, symbolizing a backtrace takes less than 1s.
addr2line = { opt-level = 3 }
adler = { opt-level = 3 }
backtrace = { opt-level = 3 }
gimli = { opt-level = 3 }
miniz_oxide = { opt-level = 3 }
object = { opt-level = 3 }
rustc-demangle = { opt-level = 3 }
[profile.release]
# Compile time seems similar to "lto = false", runtime ~10% faster
lto = "thin"
# Emit full debug info, allowing us to easily analyze core dumps from
# staging (and, in an emergency, also prod).
#
# This does not negatively impact the sizes of the main binaries
# (clusterd and environmentd), since we split the debuginfo from those
# and ship it separately to an s3 bucket before building their
# docker containers.
debug = 2
# IMPORTANT: when patching a dependency, you should only depend on "main",
# "master", or an upstream release branch (e.g., "v7.x"). Do *not* depend on a
# feature/patch branch (e.g., "fix-thing" or "pr-1234"). Feature/patch branches
# tend to get rewritten or disappear (e.g., because a PR is force pushed or gets
# merged), after which point it becomes impossible to build that historical
# version of Materialize.
[patch.crates-io]
# Projects that do not reliably release to crates.io.
timely = { git = "https://github.com/MaterializeInc/timely-dataflow.git" }
timely_bytes = { git = "https://github.com/MaterializeInc/timely-dataflow.git" }
timely_communication = { git = "https://github.com/MaterializeInc/timely-dataflow.git" }
timely_container = { git = "https://github.com/MaterializeInc/timely-dataflow.git" }
timely_logging = { git = "https://github.com/MaterializeInc/timely-dataflow.git" }
differential-dataflow = { git = "https://github.com/MaterializeInc/differential-dataflow.git" }
dogsdogsdogs = { git = "https://github.com/MaterializeInc/differential-dataflow.git" }
# Waiting on https://github.com/sfackler/rust-postgres/pull/752.
postgres = { git = "https://github.com/MaterializeInc/rust-postgres" }
tokio-postgres = { git = "https://github.com/MaterializeInc/rust-postgres" }
postgres-protocol = { git = "https://github.com/MaterializeInc/rust-postgres" }
postgres-types = { git = "https://github.com/MaterializeInc/rust-postgres" }
postgres-openssl = { git = "https://github.com/MaterializeInc/rust-postgres" }
postgres_array = { git = "https://github.com/MaterializeInc/rust-postgres-array" }
# Waiting on a release that includes:
# * https://github.com/blackbeam/mysql_async/pull/300
# * https://github.com/blackbeam/mysql_async/pull/307
mysql_async = { git = "https://github.com/MaterializeInc/mysql_async" }
# Waiting on https://github.com/MaterializeInc/serde-value/pull/35.
serde-value = { git = "https://github.com/MaterializeInc/serde-value.git" }
# Waiting on https://github.com/hyperium/tonic/pull/1398.
tonic-build = { git = "https://github.com/MaterializeInc/tonic", rev = "0d86e360ab45779770ca150c8487fe7940c299a9" }
# Waiting on https://github.com/MaterializeInc/tracing/pull/1 to be submitted
# upstream.
tracing-opentelemetry = { git = "https://github.com/MaterializeInc/tracing-opentelemetry.git" }
# Waiting on a patch release to `opentelemetry-otlp` to include
# <https://github.com/open-telemetry/opentelemetry-rust/pull/1335#issuecomment-1907101992>
# Cherry-picked on a known-good rev (the one for version 0.21.2 <https://github.com/open-telemetry/opentelemetry-rust/releases/tag/v0.21.2>
#
# Note that we can't just patch `opentelemetry-otlp`, or it will rely on traits/structs in conflicting versions of the other crates.
opentelemetry = { git = "https://github.com/MaterializeInc/opentelemetry-rust", rev = "9d300167e728983f3d655cf20782fc832d31ceac" }
opentelemetry_sdk = { git = "https://github.com/MaterializeInc/opentelemetry-rust", rev = "9d300167e728983f3d655cf20782fc832d31ceac" }
opentelemetry-otlp = { git = "https://github.com/MaterializeInc/opentelemetry-rust", rev = "9d300167e728983f3d655cf20782fc832d31ceac" }
# Waiting on https://github.com/launchdarkly/rust-server-sdk/pull/20 to make
# it into a release.
# Also bumps lru to 0.12.0
# Needs a more complex update to 2.0.0, with a custom TLS connector.
launchdarkly-server-sdk = { git = "https://github.com/MaterializeInc/rust-server-sdk", rev = "87c0f67aa51fa936d3a6a49605e8e3f565d15281" }
# Waiting on https://github.com/AltSysrq/proptest/pull/264.
proptest = { git = "https://github.com/MaterializeInc/proptest.git" }
proptest-derive = { git = "https://github.com/MaterializeInc/proptest.git" }
# Waiting on https://github.com/edenhill/librdkafka/pull/4051.
rdkafka = { git = "https://github.com/MaterializeInc/rust-rdkafka.git" }
rdkafka-sys = { git = "https://github.com/MaterializeInc/rust-rdkafka.git" }
# Waiting on https://github.com/openssh-rust/openssh/pull/120 to make it into
# a release.
openssh = { git = "https://github.com/MaterializeInc/openssh.git" }
# Removes dependencies required for WASM support that create duplicated deps.
reqwest-middleware = { git = "https://github.com/MaterializeInc/reqwest-middleware.git" }
reqwest-retry = { git = "https://github.com/MaterializeInc/reqwest-middleware.git" }
[patch."https://github.com/frankmcsherry/columnation"]
# Projects that do not reliably release to crates.io.
columnation = { git = "https://github.com/MaterializeInc/columnation.git" }
[workspace.metadata.vet]
store = { path = "misc/cargo-vet" }
# BEGIN LINT CONFIG
# DO NOT EDIT. Automatically generated by bin/gen-lints.
[workspace.lints.rust]
unknown_lints = "allow"
[workspace.lints.clippy]
style = "allow"
complexity = "allow"
large_enum_variant = "allow"
mutable_key_type = "allow"
stable_sort_primitive = "allow"
map_entry = "allow"
box_default = "allow"
drain_collect = "allow"
bool_comparison = "warn"
clone_on_ref_ptr = "warn"
no_effect = "warn"
unnecessary_unwrap = "warn"
dbg_macro = "warn"
todo = "warn"
wildcard_dependencies = "warn"
zero_prefixed_literal = "warn"
borrowed_box = "warn"
deref_addrof = "warn"
double_must_use = "warn"
double_parens = "warn"
extra_unused_lifetimes = "warn"
needless_borrow = "warn"
needless_question_mark = "warn"
needless_return = "warn"
redundant_pattern = "warn"
redundant_slicing = "warn"
redundant_static_lifetimes = "warn"
single_component_path_imports = "warn"
unnecessary_cast = "warn"
useless_asref = "warn"
useless_conversion = "warn"
builtin_type_shadow = "warn"
duplicate_underscore_argument = "warn"
double_neg = "warn"
unnecessary_mut_passed = "warn"
wildcard_in_or_patterns = "warn"
crosspointer_transmute = "warn"
excessive_precision = "warn"
overflow_check_conditional = "warn"
as_conversions = "warn"
match_overlapping_arm = "warn"
zero_divided_by_zero = "warn"
must_use_unit = "warn"
suspicious_assignment_formatting = "warn"
suspicious_else_formatting = "warn"
suspicious_unary_op_formatting = "warn"
mut_mutex_lock = "warn"
print_literal = "warn"
same_item_push = "warn"
useless_format = "warn"
write_literal = "warn"
redundant_closure = "warn"
redundant_closure_call = "warn"
unnecessary_lazy_evaluations = "warn"
partialeq_ne_impl = "warn"
redundant_field_names = "warn"
transmutes_expressible_as_ptr_casts = "warn"
unused_async = "warn"
disallowed_methods = "warn"
disallowed_macros = "warn"
disallowed_types = "warn"
from_over_into = "warn"
mod_module_files = "warn"
# END LINT CONFIG