-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
111 lines (95 loc) · 2.6 KB
/
Copy pathCargo.toml
File metadata and controls
111 lines (95 loc) · 2.6 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
[workspace]
resolver = "2"
members = [
"crates/proto",
"crates/storage",
"crates/ledger",
"crates/raft",
"crates/client",
"crates/cluster",
"crates/control",
"crates/ctl",
"crates/roda-wasm-abi",
]
# Example guest modules are standalone wasm crates, built only for
# wasm32-unknown-unknown; keep them out of normal workspace operations.
exclude = [
"crates/roda-wasm-abi/examples/transfer",
"crates/roda-wasm-abi/examples/counter",
]
# `cargo run` / `cargo build` from the root act on cluster (which produces the binary).
default-members = ["crates/cluster"]
[workspace.package]
version = "0.1.0"
edition = "2024"
authors = ["Taleh"]
license = "Apache-2.0"
repository = "https://github.com/yourname/roda-ledger"
rust-version = "1.85"
[workspace.dependencies]
# --- async runtime / RPC ---
tokio = { version = "1.40", features = ["full"] }
tonic = "0.12"
tonic-build = "0.12"
prost = "0.13"
prost-types = "0.13"
# --- concurrency primitives ---
arc-swap = "1.7"
crossbeam = "0.8"
parking_lot = "0.12"
# --- serialization / config ---
serde = { version = "1", features = ["derive"] }
toml = "0.8"
# --- logging ---
spdlog-rs = "0.4"
# --- error handling ---
thiserror = "1"
anyhow = "1"
# --- utilities ---
rand = "0.8"
bytes = "1.7"
smallvec = "1"
roda-latency-tracker = "0.1.1"
# --- CLI parsing (for the binary) ---
clap = { version = "4", features = ["derive", "env"] }
# --- test / bench ---
tempfile = "3"
proptest = "1.5"
tokio-test = "0.4"
criterion = { version = "0.5", features = ["html_reports"] }
# --- internal crates ---
proto = { path = "crates/proto" }
storage = { path = "crates/storage" }
ledger = { path = "crates/ledger" }
raft = { path = "crates/raft" }
client = { path = "crates/client" }
cluster = { path = "crates/cluster" }
control = { path = "crates/control" }
ctl = { path = "crates/ctl" }
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 1 # frame pointers for samply/perf
[profile.bench]
inherits = "release"
lto = "fat"
codegen-units = 1
# Profile for the deterministic raft simulator: optimized enough to run 10K
# schedules without being slow, but with debug assertions on to catch invariant
# violations during fault injection.
[profile.sim]
inherits = "release"
debug = 2
debug-assertions = true
overflow-checks = true
# Profile used by CI: compiles much faster than release while keeping
# debug-assertions on for stronger test signal. opt-level = 1 is enough
# for tests to run quickly without paying for full optimization.
[profile.ci]
inherits = "dev"
opt-level = 1
debug = 0
incremental = false
codegen-units = 256
lto = false