-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
216 lines (174 loc) · 5.59 KB
/
Copy pathCargo.toml
File metadata and controls
216 lines (174 loc) · 5.59 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
[workspace]
members = ["clients/rust-client", "sdbql-core", "benchmarks"]
[package]
name = "solidb"
version = "0.31.0"
edition = "2021"
default-run = "solidb"
description = "A lightweight, high-performance structured database server written in Rust."
license-file = "LICENCE.md"
repository = "https://github.com/solisoft/solidb"
keywords = ["database", "nosql", "json", "rest-api", "rust"]
categories = ["database", "web-programming::http-server"]
include = ["src/**/*", "README.md", "LICENCE.md", "Cargo.toml", "docs/**/*"]
[dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# HTTP server
axum = { version = "0.8.7", features = ["multipart", "ws", "macros"] }
# Drive HTTP connections manually (instead of `axum::serve`) so we can set an
# HTTP/1 header-read timeout — see the multiplexed HTTP server in main.rs.
hyper-util = { version = "0.1", features = ["server-auto", "server-graceful", "service", "tokio", "http1", "http2"] }
tower = { version = "0.5.2", features = ["util"] }
tower-http = { version = "0.6.8", features = ["trace", "cors", "compression-gzip", "compression-zstd"] }
async-stream = "0.3"
async-trait = "0.1"
# WebSocket Client (for global changefeed aggregation)
tokio-tungstenite = { version = "0.28", features = ["native-tls"] }
url = "2.4"
# JSON serialization
serde = { version = "1.0", features = ["derive"] }
serde_urlencoded = "0.7"
serde_json = "1.0"
serde_bytes = "0.11"
bincode = "1.3"
lz4_flex = "0.12"
base64 = "0.22"
base32 = "0.5"
jsonschema = "0.45"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Observability - OpenTelemetry trace context propagation
opentelemetry = { version = "0.17", features = ["trace"] }
tracing-opentelemetry = "0.17"
# CLI
clap = { version = "4.4", features = ["derive"] }
dotenvy = "0.15"
# Utilities
uuid = { version = "1.6", features = ["v4", "v7", "serde"] }
hostname = "0.4"
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
uuid7 = "1.0"
ulid = "1.1"
nanoid = "0.4"
regex = "1.10"
seahash = "4.1" # Uniform hash distribution for sharding
# Storage
rust-rocksdb = "0.46"
cron = "0.15"
# Authentication
argon2 = "0.5"
jsonwebtoken = { version = "10.3", default-features = false, features = ["aws_lc_rs", "use_pem"] }
once_cell = "1.19"
rand_core = "0.6"
rand = "0.8"
hex = "0.4"
sha2 = "0.10"
hmac = "0.12"
x25519-dalek = { version = "2.0", features = ["static_secrets"] }
md5 = "0.8"
subtle = "2.6"
# Temp directories (needed by benchmark)
tempfile = "3.10"
# HTTP client (for benchmarks)
reqwest = { version = "0.13", features = ["json", "blocking", "multipart"] }
# Vendored OpenSSL for cross-compilation support
openssl = { version = "0.10", features = ["vendored"] }
# FUSE filesystem (requires macFUSE on macOS)
fuser = { version = "0.16", optional = true }
# Daemon mode (Unix only)
# daemonize crate removed - using custom implementation in src/daemon.rs
# daemonize = "0.5"
libc = "0.2"
# Parallel processing (for concurrent benchmarks)
rayon = "1.8"
csv = "1.4.0"
# CLI UX
indicatif = "0.18"
colored = "3.0"
rustyline = "17"
# System info for stats
sysinfo = "0.38"
# Prometheus metrics
prometheus = "0.14"
futures = { version = "0.3.31", features = ["std"] }
# Embedded Lua scripting
mlua = { version = "0.11.5", features = ["lua54", "vendored", "async", "serialize", "send"] }
rmp-serde = "1.3.1"
# Enhanced validation and sanitization
sanitizer = "1.0"
slug = "0.1"
# Image processing
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp", "gif"] }
# Cookie handling
cookie = "0.18"
time = "0.3.47"
# Caching
lru = "0.16"
fastbloom = { version = "0.17.0", features = ["serde"] }
cuckoofilter = { version = "0.5", features = ["serde_support"] }
parking_lot = "0.12"
dashmap = "6"
# Self-update
flate2 = "1" # Gzip decompression
tar = "0.4" # Tar archive extraction
# CLI Script Development
notify = "8" # File system watcher
toml = "1.0" # Config file parsing
walkdir = "2" # Directory traversal
similar = "2" # Diff generation
rpassword = "7" # Secure password input
# TUI
ratatui = "0.29" # TUI framework
crossterm = "0.29" # Cross-platform terminal backend
tui-textarea = { version = "0.7", features = ["search"] } # Multi-line text editor widget
# Default binary
[[bin]]
name = "solidb"
path = "src/main.rs"
[[bin]]
name = "solidb-dump"
path = "src/bin/solidb-dump.rs"
[[bin]]
name = "solidb-restore"
path = "src/bin/solidb-restore.rs"
[profile.release]
lto = "thin"
codegen-units = 16
opt-level = 3
[profile.bench]
inherits = "release"
[dev-dependencies]
tokio-test = "0.4"
solidb-client = { path = "clients/rust-client" }
# Memory allocator: jemalloc fragments far less than glibc malloc and returns
# freed memory to the OS. With one column family per collection plus many
# Tokio/RocksDB threads, glibc's per-thread arenas pin RSS at the allocation
# high-water mark (multi-GB) long after the memory is freed; jemalloc keeps
# RSS tracking the actual working set. Not used under MSVC (Windows).
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.6"
[features]
fuse = ["dep:fuser"]
[[bin]]
name = "solidb-fuse"
path = "src/bin/solidb-fuse.rs"
required-features = ["fuse"]
[[bin]]
name = "solidb-repl"
path = "src/bin/solidb-repl.rs"
[workspace.metadata.release]
sign-commit = false
sign-tag = false
push-remote = "origin"
consolidate-commits = false
pre-release-commit-message = "chore: release v{{version}}"
tag-message = "{{tag_name}}"
tag-name = "v{{version}}"
pre-release-replacements = []
publish = false