-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
301 lines (246 loc) · 7.8 KB
/
Copy pathCargo.toml
File metadata and controls
301 lines (246 loc) · 7.8 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
[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"] }
# Serialization
serde = { version = "1", features = ["derive"] }
# Memory
tikv-jemallocator = "0.6"
tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] }
# System
libc = "0.2"
# Checksums
crc32c = "0.6"
# Crypto
hmac = "0.12"
hkdf = "0.12"
subtle = "2"
base64 = "0.22"
getrandom = { version = "0.3", features = ["std"] }
aes-gcm = "0.10"
argon2 = "0.5"
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.12", default-features = false, features = [
"rustls-tls",
"json",
] }
# Hashing
sha2 = { version = "0.10", features = ["oid"] }
# WASM runtime
wasmtime = { version = "45", default-features = false, features = [
"cranelift",
"runtime",
] }
# Memory-mapped I/O
memmap2 = "0.9"
# Cold storage
parquet = "59"
object_store = { version = "0.13", features = ["aws"] }
bytes = "1"
# io_uring
io-uring = "0.7"
# CRDTs
loro = "=1.13.0"
# Kafka bridge
rdkafka = { version = "0.36", 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.13"
snap = "1"
flate2 = "1"
tonic = "0.14"
# Arrow (columnar format)
arrow = { version = "59", default-features = false, features = ["ipc"] }
# Config & serialization
toml = "0.8"
anyhow = "1"
serde_json = "1"
sonic-rs = "0.5"
chrono = { version = "0.4", features = ["std"], default-features = false }
# MessagePack
rmpv = "1"
zerompk = { version = "0.6", 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.29"
# Storage
redb = "2"
# 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.9"
# ID types
uuid = { version = "1", features = ["v4", "v7", "serde", "js"] }
# Inline-allocated small vectors
smallvec = { version = "1", features = ["serde"] }
ulid = "1"
nanoid = "0.4"
# 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.10"
# Linear algebra (SVD, matrix ops for OPQ Procrustes rotation)
nalgebra = "0.33"
# Compression
zstd = "0.13"
lz4_flex = { version = "0.11", default-features = false, features = [
"safe-encode",
"safe-decode",
] }
pco = "1"
# PostgreSQL wire protocol
pgwire = { version = "0.38", 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.6", features = ["cors", "trace"] }
# TLS
tokio-rustls = { version = "0.26", default-features = false, features = [
"aws-lc-rs",
] }
rustls-pemfile = "2"
# 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
[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