-
Notifications
You must be signed in to change notification settings - Fork 772
Expand file tree
/
Copy pathCargo.toml
More file actions
461 lines (439 loc) · 17.7 KB
/
Cargo.toml
File metadata and controls
461 lines (439 loc) · 17.7 KB
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
cargo-features = ["profile-rustflags"]
[workspace]
members = [
"src/batch",
"src/batch/executors",
"src/bench",
"src/cmd",
"src/cmd_all",
"src/common",
"src/common/common_service",
"src/common/estimate_size",
"src/common/fields-derive",
"src/common/heap_profiling",
"src/common/log",
"src/common/metrics",
"src/common/telemetry_event",
"src/compute",
"src/connector",
"src/connector/codec",
"src/connector/with_options",
"src/ctl",
"src/dml",
"src/error",
"src/expr/core",
"src/expr/impl",
"src/expr/macro",
"src/frontend",
"src/frontend/macro",
"src/frontend/planner_test",
"src/java_binding",
"src/jni_core",
"src/license",
"src/meta",
"src/meta/dashboard",
"src/meta/model",
"src/meta/model/migration",
"src/meta/node",
"src/meta/service",
"src/object_store",
"src/prost",
"src/prost/helpers",
"src/risedevtool",
"src/risedevtool/config",
"src/rpc_client",
"src/sqlparser",
"src/storage",
"src/storage/backup",
"src/storage/compactor",
"src/storage/hummock_sdk",
"src/storage/hummock_test",
"src/stream",
"src/stream/spill_test",
"src/test_runner",
"src/tests/compaction_test",
"src/tests/e2e_extended_mode",
"src/tests/mysql_test",
"src/tests/regress",
"src/tests/simulation",
"src/tests/sqlsmith",
"src/tests/state_cleaning_test",
"src/utils/delta_btree_map",
"src/utils/futures_util",
"src/utils/iter_util",
"src/utils/openai_embedding_service",
"src/utils/pgwire",
"src/utils/resource_util",
"src/utils/runtime",
"src/utils/sync-point",
"src/utils/variables",
"src/utils/workspace-config",
"src/workspace-hack",
]
exclude = [
"e2e_test/source_inline/pubsub",
"e2e_test/udf/embedded_wasm",
"lints",
]
resolver = "2"
[workspace.package]
version = "3.1.0-alpha"
edition = "2024"
homepage = "https://github.com/risingwavelabs/risingwave"
keywords = ["sql", "database", "streaming"]
license = "Apache-2.0"
repository = "https://github.com/risingwavelabs/risingwave"
# some dependencies are not worth deleting.
[workspace.metadata.cargo-machete]
ignored = [
"workspace-hack",
"expect-test",
"pretty_assertions",
"serde",
"serde_json",
"linkme",
"tempfile",
"cfg-if",
]
[workspace.metadata.cargo-udeps.ignore]
normal = ["workspace-hack"]
development = ["expect-test", "pretty_assertions"]
[workspace.metadata.dylint]
libraries = [{ path = "./lints" }]
[workspace.dependencies]
apache-avro = { git = "https://github.com/risingwavelabs/avro-rs", rev = "1f2723802d4fb77b97fa084f7bb81e3b60b9e03f" }
arc-swap = "1"
arrow-udf-runtime = "0.9.0"
async-openai = { version = "0.38.1", features = ["embedding"] }
auto_enums = { version = "0.8", features = ["futures03", "tokio1"] }
await-tree = { version = "0.3.2-alpha.2", features = ["serde", "attributes"] }
aws-config = { version = "1", default-features = false, features = [
"behavior-version-latest",
"rt-tokio",
"rustls",
] }
aws-credential-types = { version = "1", default-features = false, features = [
"hardcoded-credentials",
] }
aws-endpoint = "0.60"
aws-sdk-dynamodb = { version = "1", default-features = false, features = ["rt-tokio", "default-https-client"] }
aws-sdk-glue = { version = "1", default-features = false, features = ["rt-tokio", "default-https-client"] }
aws-sdk-kinesis = { version = "1", default-features = false, features = [
"default-https-client",
"rt-tokio",
] }
aws-sdk-s3 = { version = "1", default-features = false, features = [
"default-https-client",
"rt-tokio",
] }
aws-sdk-sqs = { version = "1", default-features = false, features = [
"default-https-client",
"rt-tokio",
] }
aws-smithy-http = "0.62"
aws-smithy-http-client = { version = "1.1", default-features = false, features = ["rustls-aws-lc"] }
aws-smithy-runtime = "1.8"
aws-smithy-runtime-api = "1.9"
aws-smithy-types = { version = "1.3", default-features = false }
aws-types = "1.3"
axum = { version = "0.8.8", features = ["ws"] }
axum-extra = "0.10"
chrono = { version = "0.4.40", default-features = false }
clap = { version = "4", features = ["cargo", "derive", "env"] }
criterion = { version = "0.8", features = ["async_futures"] }
deltalake = { version = "0.32.0", features = ["s3", "gcs"] }
faiss = { version = "0.12.2-alpha.0", features = ["static"] }
foyer = { version = "0.21.2", features = ["serde", "tracing"] }
futures-async-stream = "0.2.13"
governor = { version = "0.10", default-features = false, features = ["std"] }
hashbrown = { version = "0.17", features = [
"default-hasher",
"inline-more",
] }
hashbrown0_14 = { package = "hashbrown", version = "0.14" }
hashbrown0_15 = { package = "hashbrown", version = "0.15", features = [
"nightly",
] }
hytra = "0.1"
# branch dev_rebase_main_20251111
iceberg = { git = "https://github.com/risingwavelabs/iceberg-rust.git", rev = "fb290e4c9473b1fb4b582e9ac88a8fe08d2265ef", features = [
"storage-s3",
"storage-gcs",
"storage-azblob",
"storage-azdls",
] }
iceberg-catalog-glue = { git = "https://github.com/risingwavelabs/iceberg-rust.git", rev = "fb290e4c9473b1fb4b582e9ac88a8fe08d2265ef" }
iceberg-catalog-rest = { git = "https://github.com/risingwavelabs/iceberg-rust.git", rev = "fb290e4c9473b1fb4b582e9ac88a8fe08d2265ef" }
adbc_core = { version = "0.23" }
adbc_snowflake = { version = "0.23", default-features = false }
indexmap = { version = "2.12.0", features = ["serde"] }
itertools = "0.14.0"
jni = { version = "0.21.1", features = ["invocation"] }
jsonbb = { version = "0.2.3", features = ["float_roundtrip"] }
jsonwebtoken = { version = "10", features = ["aws_lc_rs"] }
linkme = { version = "0.3.32", features = ["used_linker"] }
lru = "0.16"
madsim = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
mixtrics = { version = "0.2", features = ["prometheus"] }
mysql_async = { version = "0.36", features = [
"native-tls-tls",
"rust_decimal",
] }
opendal = "0.55"
openssl = "0.10.80"
opentelemetry = "0.31"
opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] }
opentelemetry-semantic-conventions = "0.31"
opentelemetry_sdk = { version = "0.31", default-features = false, features = ["trace"] }
otlp-embedded = "0.0.2"
parking_lot = { version = "0.12", features = [
"arc_lock",
"deadlock_detection",
] }
parquet = { version = "58", features = ["async"] }
pin-project-lite = "0.2"
prost = { version = "=0.14.3" }
prost-build = { version = "=0.14.3" }
prost-derive = { version = "=0.14.3" }
prost-reflect = { version = "0.16.3", features = ["serde"] }
prost-types = { version = "=0.14.3" }
rand = { version = "0.9", features = ["small_rng"] }
rdkafka = { package = "madsim-rdkafka", git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646", features = [
"cmake-build",
] }
redis = { version = "1.0" }
regex = "1.12"
reqwest = { version = "0.12.2", features = ["json", "stream"] }
risingwave_backup = { path = "./src/storage/backup" }
risingwave_batch = { path = "./src/batch" }
risingwave_batch_executors = { path = "./src/batch/executors" }
risingwave_cmd = { path = "./src/cmd" }
risingwave_common = { path = "./src/common" }
risingwave_common_estimate_size = { path = "./src/common/estimate_size" }
risingwave_common_heap_profiling = { path = "./src/common/heap_profiling" }
risingwave_common_metrics = { path = "./src/common/metrics" }
risingwave_common_proc_macro = { path = "./src/common/proc_macro" }
risingwave_common_rate_limit = { path = "./src/common/rate_limit" }
risingwave_common_service = { path = "./src/common/common_service" }
risingwave_compactor = { path = "./src/storage/compactor" }
risingwave_compute = { path = "./src/compute" }
risingwave_connector = { path = "./src/connector" }
risingwave_connector_codec = { path = "./src/connector/codec" }
risingwave_ctl = { path = "./src/ctl" }
risingwave_dml = { path = "./src/dml" }
risingwave_error = { path = "./src/error" }
risingwave_expr = { path = "./src/expr/core" }
risingwave_expr_impl = { path = "./src/expr/impl" }
risingwave_frontend = { path = "./src/frontend" }
risingwave_hummock_sdk = { path = "./src/storage/hummock_sdk" }
risingwave_hummock_test = { path = "./src/storage/hummock_test" }
risingwave_hummock_trace = { path = "./src/storage/hummock_trace" }
risingwave_java_binding = { path = "./src/java_binding" }
risingwave_jni_core = { path = "src/jni_core" }
risingwave_license = { path = "./src/license" }
risingwave_mem_table_spill_test = { path = "./src/stream/spill_test" }
risingwave_meta = { path = "./src/meta" }
risingwave_meta_dashboard = { path = "./src/meta/dashboard" }
risingwave_meta_model = { path = "src/meta/model" }
risingwave_meta_model_migration = { path = "src/meta/model/migration" }
risingwave_meta_node = { path = "./src/meta/node" }
risingwave_meta_service = { path = "./src/meta/service" }
risingwave_object_store = { path = "./src/object_store" }
risingwave_pb = { path = "./src/prost" }
risingwave_rpc_client = { path = "./src/rpc_client" }
risingwave_rt = { path = "./src/utils/runtime" }
risingwave_sqlparser = { path = "./src/sqlparser" }
risingwave_sqlsmith = { path = "./src/tests/sqlsmith" }
risingwave_storage = { path = "./src/storage" }
risingwave_stream = { path = "./src/stream" }
risingwave_telemetry_event = { path = "./src/common/telemetry_event" }
risingwave_test_runner = { path = "./src/test_runner" }
risingwave_udf = { path = "./src/expr/udf" }
risingwave_variables = { path = "./src/utils/variables" }
rw_futures_util = { path = "src/utils/futures_util" }
rw_iter_util = { path = "src/utils/iter_util" }
rw_resource_util = { path = "src/utils/resource_util" }
# Pin sea-orm & sqlx to a specific version as we are using a patched version of sqlx
# for compatibility with madsim.
sea-orm = { version = "=1.1.1", features = [
"sqlx-all",
"runtime-tokio-native-tls",
"with-uuid",
] }
sea-orm-migration = "=1.1.1"
serde = { version = "1", features = ["derive"] }
smallvec = "1.15"
sqlx = { version = "=0.8.2", default-features = false, features = [
"bigdecimal",
"chrono",
"json",
"mysql",
"postgres",
"runtime-tokio-native-tls",
"rust_decimal",
"sqlite",
"time",
"uuid",
] }
thiserror = "2"
thiserror-ext = { version = "0.3.1-alpha.2", features = ["provide"] }
tikv-jemalloc-ctl = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d988d687a94cd859855e19241cd8b0705466" }
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", features = [
"profiling",
"stats",
], rev = "64a2d988d687a94cd859855e19241cd8b0705466" }
tokio = { package = "madsim-tokio", git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646", features = [
"rt",
"rt-multi-thread",
"sync",
"macros",
"time",
"signal",
] }
tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055", features = [
"net",
"fs",
] }
tokio-util = "0.7"
toml = "1.0"
tonic = { package = "madsim-tonic", git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646", features = ["zstd"] }
tonic-build = { package = "madsim-tonic-build", git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
tracing-opentelemetry = "=0.32.0"
[workspace.lints.rust]
# `forbid` will also prevent the misuse of `#[allow(unused)]`
unused_must_use = "forbid"
future_incompatible = { level = "warn", priority = -1 }
nonstandard_style = { level = "warn", priority = -1 }
rust_2018_idioms = { level = "warn", priority = -1 }
# Backward compatibility is not important for an application.
async_fn_in_trait = "allow"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(madsim)',
'cfg(coverage)',
'cfg(dashboard_built)',
] }
[workspace.lints.clippy]
uninlined_format_args = "allow"
dbg_macro = "warn"
disallowed_methods = "warn"
disallowed_types = "warn"
doc_markdown = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
inconsistent_struct_constructor = "warn"
unused_async = "warn"
map_flatten = "warn"
await_holding_lock = "warn"
# For private code, this is a little pedantic and not worth fixing.
# &Vec or &String is acceptable
ptr_arg = "allow"
# a little pedantic
get_first = "allow"
new_without_default = "allow"
# TODO: remove later https://github.com/rust-lang/rust-clippy/issues/12537
# duplicated_attributes = "allow"
# TODO: remove later https://github.com/rust-lang/rust-clippy/issues/12436
#mixed_attributes_style = "allow"
too_long_first_doc_paragraph = "allow"
# TODO: remove later when EnumAsInner, bitfield and EnumTryAs does not fire this warning
double_parens = "allow"
str_to_string = "warn"
redundant_clone = "warn"
implicit_clone = "warn"
# TODO: this makes sense, but it's too noisy for now (2025-03-10)
large_enum_variant = "allow"
# TODO: this makes sense, but it's too noisy for now (2025-03-10)
result_large_err = "allow"
large_futures = "warn"
large_stack_arrays = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
[workspace.lints.rustdoc]
private_intra_doc_links = "allow"
# Explicit lints don't hurt, and sometimes rust-analyzer works better with explicit links.
redundant_explicit_links = "allow"
# Tweak built-in profiles and define custom profiles.
# See `docs/dev/src/build-and-run/profiles.md` for detailed information.
[profile.dev]
lto = "off"
# use parallel frontend to speed up build
# TODO: may consider applying to release/production profile as well
# TODO: re-enable this after it's more stable. It causes many ICE in current version. https://github.com/rust-lang/rust/issues/143342
# rustflags = ["-Z", "threads=8"]
[profile.release]
debug = "full"
incremental = true
split-debuginfo = "packed"
lto = "off"
# Patch profile for production clusters.
# It will trade-off lto for faster build time.
[profile.patch-production]
inherits = "production"
lto = "off"
[profile.production]
inherits = "release"
incremental = false
lto = "thin"
[profile.thin-production]
inherits = "production"
debug = 0 # no debug info, only symbols
[profile.ci-release]
inherits = "release"
incremental = false
lto = "off"
debug = "line-tables-only"
split-debuginfo = "off"
debug-assertions = true
overflow-checks = true
[profile.ci-dev]
inherits = "dev"
incremental = false
debug = "line-tables-only"
[profile.ci-dev.package."*"] # external dependencies
opt-level = 1
[profile.ci-dev.package."tokio"]
opt-level = 3
[profile.ci-dev.package."await-tree"]
opt-level = 3
[profile.ci-dev.package."indextree"]
opt-level = 3
[profile.ci-sim]
inherits = "dev"
incremental = false
debug = "line-tables-only"
opt-level = 2
[patch.crates-io]
faiss = { git = "https://github.com/risingwavelabs/faiss-rs.git", rev = "f6f0acb" }
# Keep transitive madsim-family resolution aligned to the same upstream rev.
madsim = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-aws-sdk-s3 = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-macros = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-rdkafka = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-tokio = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-tonic = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
madsim-tonic-build = { git = "https://github.com/risingwavelabs/madsim.git", rev = "595455fd05058b3b48bf281bea3ada1bca3d6646" }
# Patch third-party crates for deterministic simulation.
getrandom = { git = "https://github.com/madsim-rs/getrandom.git", rev = "e79a7ae" }
# Don't patch `tokio-stream`, but only use the madsim version for **direct** dependencies.
# Imagine an unpatched dependency depends on the original `tokio` and the patched `tokio-stream`.
# tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055" }
tokio-retry = { git = "https://github.com/madsim-rs/rust-tokio-retry.git", rev = "95e2fd3" }
tokio-postgres = { git = "https://github.com/madsim-rs/rust-postgres.git", rev = "ac00d88" }
# sqlx version: v0.8.2
# patch diffs: https://github.com/madsim-rs/sqlx/pull/4
sqlx = { git = "https://github.com/madsim-rs/sqlx.git", rev = "3efe6d0065963db2a2b7f30dee69f647e28dec81" }
# patch to remove preserve_order from serde_json
bson = { git = "https://github.com/risingwavelabs/bson-rust", tag = "v2.15.0-json-no-preserve_order" }
# patch to revert `Hash for StringRef` for compatibility with `&str` in vnode
jsonbb = { git = "https://github.com/risingwavelabs/jsonbb.git", rev = "f618cd8c9bc517f35dec192d4e7553650894a011" }
# patch to make zstd version compatible:
# desired v4.9.0+2.10.0 requires: zstd-sys >= 2.0.15
# conflict: parquet@54 requires: zstd-sys <= 2.0.13
# why this patch work with zstd-sys < 2.0.15?
# in the last release v4.8.0+2.3.0, the zstd-sys requirement is 2.0.6 < 2.0.13, and the release does not contain zstd related changes
rdkafka-sys = { git = "https://github.com/risingwavelabs/rust-rdkafka", package = "rdkafka-sys", branch = "downgrade-zstd" }
# Keep prost aligned with tonic-build 0.14.x used by madsim-tonic-build.
prost = { git = "https://github.com/risingwavelabs/prost.git", package = "prost", rev = "040a192409e45069158300baec4f402ad1fe101a" }
prost-derive = { git = "https://github.com/risingwavelabs/prost.git", package = "prost-derive", rev = "040a192409e45069158300baec4f402ad1fe101a" }
prost-build = { git = "https://github.com/risingwavelabs/prost.git", package = "prost-build", rev = "040a192409e45069158300baec4f402ad1fe101a" }
prost-types = { git = "https://github.com/risingwavelabs/prost.git", package = "prost-types", rev = "040a192409e45069158300baec4f402ad1fe101a" }