-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
363 lines (299 loc) · 10.5 KB
/
Copy pathCargo.toml
File metadata and controls
363 lines (299 loc) · 10.5 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
[workspace]
members = [
"nodedb",
"nodedb-bridge",
"nodedb-wal",
"nodedb-mem",
"nodedb-crdt",
"nodedb-raft",
"nodedb-cluster",
"nodedb-types",
"nodedb-client",
"nodedb-query",
"nodedb-codec",
"nodedb-spatial",
"nodedb-graph",
"nodedb-vector",
"nodedb-vector-gpu",
"nodedb-fts",
"nodedb-strict",
"nodedb-columnar",
"nodedb-array",
"nodedb-sql",
"nodedb-physical",
"nodedb-test-support",
"nodedb-cluster-tests",
"nodedb-client-tests",
]
resolver = "2"
[workspace.package]
version = "0.5.0"
edition = "2024"
rust-version = "1.94"
license = "BUSL-1.1"
readme = "README.md"
repository = "https://github.com/NodeDB-Lab/nodedb"
homepage = "https://nodedb.dev"
documentation = "https://docs.rs/nodedb"
[workspace.dependencies]
# Foundation crates (internal)
nodedb = { path = "nodedb", version = "0.5" }
nodedb-types = { path = "nodedb-types", version = "0.5" }
nodedb-client = { path = "nodedb-client", version = "0.5" }
nodedb-bridge = { path = "nodedb-bridge", version = "0.5" }
nodedb-wal = { path = "nodedb-wal", version = "0.5" }
nodedb-mem = { path = "nodedb-mem", version = "0.5" }
nodedb-crdt = { path = "nodedb-crdt", version = "0.5" }
nodedb-raft = { path = "nodedb-raft", version = "0.5" }
nodedb-cluster = { path = "nodedb-cluster", version = "0.5" }
nodedb-query = { path = "nodedb-query", version = "0.5" }
nodedb-codec = { path = "nodedb-codec", version = "0.5" }
nodedb-spatial = { path = "nodedb-spatial", version = "0.5" }
nodedb-graph = { path = "nodedb-graph", version = "0.5" }
nodedb-vector = { path = "nodedb-vector", version = "0.5" }
nodedb-vector-gpu = { path = "nodedb-vector-gpu", version = "0.5" }
nodedb-fts = { path = "nodedb-fts", version = "0.5" }
nodedb-strict = { path = "nodedb-strict", version = "0.5" }
nodedb-columnar = { path = "nodedb-columnar", version = "0.5" }
nodedb-array = { path = "nodedb-array", version = "0.5" }
nodedb-sql = { path = "nodedb-sql", version = "0.5" }
nodedb-physical = { path = "nodedb-physical", version = "0.5" }
nodedb-test-support = { path = "nodedb-test-support" }
# Async runtimes
tokio = { version = "1", features = ["full"] }
# Poison-free synchronization for security-critical in-memory state.
parking_lot = "0.12"
# Error handling & diagnostics
thiserror = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Black-box recorder for corruption / invariant / durability failures.
# Declared featureless here on purpose: several crates in this workspace depend
# on it and Cargo must resolve them all to ONE package, or the host initializes
# one recorder while every emit through the other silently disappears. Host-only
# features (`native-crash`) are added by the binary that arms them, never here,
# so a wasm build of a library crate never pulls the crash toolchain in.
faultbox = { version = "0.1" }
# Serialization
serde = { version = "1", features = ["derive"] }
# Memory
tikv-jemallocator = "0.7"
tikv-jemalloc-ctl = { version = "0.7", features = ["stats"] }
# System
libc = "0.2"
# Checksums
crc32c = "0.6"
# Crypto
# Pinned to the digest 0.10 generation: `rsa` (JWT RS256) has no release on
# digest 0.11, so sha2 0.11 / hmac 0.13 / aes-gcm 0.11 / p256 0.14 cannot be
# adopted until it does.
hmac = "0.12"
hkdf = "0.12"
subtle = "2"
base64 = "0.23"
getrandom = { version = "0.4", features = ["std"] }
# wasm builds pin the older generations: `getrandom` 0.3 needs `wasm_js` and 0.2
# needs `js` to reach the browser CSPRNG. Both are aliased so one crate can hold
# all three generations at once.
getrandom_03 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
getrandom_02 = { package = "getrandom", version = "0.2", features = ["js"] }
aes-gcm = "0.10"
argon2 = "0.5"
rsa = "0.9"
zeroize = { version = "1", features = ["derive"] }
aws-sdk-kms = { version = "1", default-features = false, features = [
"default-https-client",
] }
aws-config = { version = "1", default-features = false, features = [
"default-https-client",
"rt-tokio",
] }
# JWT / JWKS (EC key support for ES256/ES384)
p256 = { version = "0.13", features = ["ecdsa"] }
p384 = { version = "0.13", features = ["ecdsa"] }
# HTTP client (JWKS fetch)
reqwest = { version = "0.13", default-features = false, features = [
"rustls",
"json",
"query",
] }
# Hashing
sha2 = { version = "0.10", features = ["oid"] }
# WASM runtime
wasmtime = { version = "48", default-features = false, features = [
"cranelift",
"runtime",
] }
# Memory-mapped I/O
memmap2 = "0.9"
# Cold storage
parquet = "59"
object_store = { version = "0.14", features = ["aws"] }
bytes = "1"
# io_uring
io-uring = "0.7"
# CRDTs
loro = "=1.13.9"
# Kafka bridge
rdkafka = { version = "0.39", features = ["cmake-build"] }
# zlib: rdkafka-sys (and other transitive C deps) link libz dynamically by
# default, which makes the release binary depend on libz.so.1 at runtime and
# breaks minimal base images (e.g. Chainguard glibc-dynamic). Force the
# `static` feature on libz-sys via Cargo's feature unification so zlib is
# baked into the binary and the runtime image needs no extra .so files.
libz-sys = { version = "1", features = ["static"] }
# Regex
regex = "1"
# Protobuf + compression (Prometheus remote write/read, OTLP)
prost = "0.14"
snap = "1"
flate2 = "1"
tonic = "0.14"
# Arrow (columnar format)
arrow = { version = "59", default-features = false, features = ["ipc"] }
# Config & serialization
toml = "1"
anyhow = "1"
serde_json = "1"
sonic-rs = "0.5"
chrono = { version = "0.4", features = ["std"], default-features = false }
# MessagePack
rmpv = "1"
zerompk = { version = "0.8", features = ["std", "derive"] }
# Bitmap
roaring = "0.11"
# Zero-copy serialization
rkyv = { version = "0.8", features = ["alloc"] }
# Atomic pointer swap for non-blocking index cutover
arc-swap = "1"
# Safe transmutation for f32/u8 slice casts
bytemuck = { version = "1", features = ["derive"] }
# IEEE 754 half-precision (f16) and brain-float (bf16) types
half = { version = "2", features = ["bytemuck"] }
# WebSocket
tokio-tungstenite = "0.30"
# Storage
# `experimental_cursor` (which pulls in `experimental-api-5`) exposes the cursor
# API we contributed upstream, and api-5 reshapes `range`/`get`/`extract_from_if`
# across the whole workspace.
#
# The requirement is `~4.2`, not `4`, precisely BECAUSE these surfaces are
# labelled experimental: redb is free to change them in any minor release, and a
# floating `4` would pull that in on the next `cargo update` and break the build
# — or worse, change iteration semantics under a published release. `~4.2` still
# takes patch fixes. Widen it deliberately, after re-reading redb's changelog for
# api-5 changes, never as a routine bump.
redb = { version = "~4.2", features = ["experimental_cursor"] }
# Temp files (external sort spill)
tempfile = "3"
# Text search
rust-stemmers = "1"
unicode-normalization = "0.1"
# Fast hashing for integer keys (GROUP BY aggregation)
rustc-hash = "2"
# Fast non-cryptographic hashing (xxHash3 for cluster key partitioning)
xxhash-rust = { version = "0.8", features = ["xxh3"] }
# Fast parsing (CSV bulk import)
memchr = "2.7"
lexical-core = "1"
# Random
rand = "0.10"
# ID types
uuid = { version = "1", features = ["v4", "v7", "serde", "js"] }
# Inline-allocated small vectors
smallvec = { version = "1", features = ["serde"] }
ulid = "3"
nanoid = "0.5"
# Arbitrary-precision decimal
rust_decimal = { version = "1", features = ["serde-with-str"] }
# QUIC transport
quinn = "0.11"
# Ecosystem
nexar = "0.1"
# H3 hexagonal spatial index
h3o = "0.11"
# Linear algebra (SVD, matrix ops for OPQ Procrustes rotation)
nalgebra = "0.35"
# Compression
zstd = "0.13"
# `alloc`, not `std`: the codec crate must stay usable from the wasm builds.
lz4_flex = { version = "0.14", default-features = false, features = [
"safe-encode",
"safe-decode",
"alloc",
] }
pco = "1"
# PostgreSQL wire protocol
pgwire = { version = "0.41", default-features = false, features = [
"server-api-aws-lc-rs",
] }
postgres-types = "0.2"
tokio-postgres = "0.7"
async-trait = "0.1"
futures = "0.3"
async-stream = "0.3"
# HTTP API
axum = { version = "0.8", features = ["ws"] }
axum-server = { version = "0.8", features = ["tls-rustls"] }
tower = "0.5"
tower-http = { version = "0.7", features = ["cors", "trace"] }
# TLS
tokio-rustls = { version = "0.26", default-features = false, features = [
"aws-lc-rs",
] }
rustls-pemfile = "2"
# SQL parser
sqlparser = { version = "0.62", features = ["visitor"] }
# X.509 / PEM handling (TLS peer identity, certificate pinning)
x509-parser = "0.18"
pem = "4"
rcgen = "0.14"
# systemd readiness notification (Linux service integration)
sd-notify = "0.5"
# Pure-Rust zstd decoder (wasm builds, where zstd-sys cannot link)
ruzstd = "0.9"
# CJK / language segmentation (FTS analyzers)
lindera = "2.3"
icu_segmenter = "1"
whatlang = "0.18"
# Hex encoding
hex = "0.4"
# Property-based testing
proptest = "1"
# Fuzzing-adjacent TLS backend shared by cluster transport and its tests
rustls = { version = "0.23", default-features = false, features = ["ring"] }
# Benchmarking
fluxbench = "0.1"
[profile.dev]
debug = "line-tables-only"
# Strip symbol tables from dev/test binaries. With --all-features every test
# binary statically links the full dependency closure, and there are hundreds of
# them, so an unstripped target/ runs to ~100 GB. Stripping removes better than a
# third of each binary. This unsymbolises panics/backtraces on ordinary dev
# builds; when you need to debug, build with `--profile debugging`, which keeps
# full symbols (see below).
strip = true
# Incremental caches buy little here and cost tens of GB. The dominant build cost
# is linking one binary per test file, which incremental does not help, and the
# cache is discarded every time target/ is cleared for space.
incremental = false
[profile.dev.package."*"]
debug = false
[profile.ci]
inherits = "dev"
debug = false
incremental = false
# Drop symbol tables from the linked test binaries. With --all-features every
# test binary statically links the full dependency closure, and there are
# hundreds of them, so target/ runs to roughly 100 GB — enough to exhaust a CI
# runner mid-link, where the linker's memory-mapped write aborts with SIGBUS
# instead of reporting a full disk. Stripping removes better than a third of
# each binary, which is the difference between fitting and not. Backtraces here
# are already unsymbolised (`debug = false`), so this costs no diagnostic value
# the profile had.
strip = true
[profile.debugging]
inherits = "dev"
debug = true
# dev strips symbols; override it here so the debugging profile stays symbolised.
strip = false