forked from paritytech/jamtart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (96 loc) · 2.98 KB
/
Cargo.toml
File metadata and controls
119 lines (96 loc) · 2.98 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
[package]
name = "tart-backend"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "tart-backend"
path = "src/main.rs"
[[bin]]
name = "tart-dash"
path = "src/bin/tart-dash.rs"
required-features = ["dashboard"]
[[bin]]
name = "tart-bench"
path = "src/bin/bench.rs"
required-features = ["bench"]
[[bin]]
name = "tart-loadgen"
path = "src/bin/loadgen.rs"
[dependencies]
# Async runtime
tokio = { version = "1.40", features = ["rt-multi-thread", "sync", "time", "macros", "io-util", "net", "signal"] }
# Web framework
axum = { version = "0.7", features = ["ws"] }
tower = { version = "0.4" }
tower-http = { version = "0.5", features = ["cors", "trace", "compression-gzip", "compression-br", "set-header", "timeout", "limit"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_bytes = "0.11"
bytes = "1.7"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "migrate", "chrono"] }
# Time handling
chrono = { version = "0.4", features = ["serde"] }
# Utilities
dashmap = "6.0"
futures = "0.3"
hex = "0.4"
rand = "0.8"
# Performance optimizations
parking_lot = "0.12"
metrics = "0.23"
metrics-exporter-prometheus = "0.15"
tikv-jemallocator = { version = "0.6", optional = true }
# Platform-specific dependencies
[target.'cfg(unix)'.dependencies]
libc = "0.2"
# Dashboard dependencies (feature-gated to avoid bloating main binary)
ratatui = { version = "0.26", optional = true }
crossterm = { version = "0.27", optional = true }
clap = { version = "4.4", features = ["derive", "env"], optional = true }
reqwest = { version = "0.11", features = ["json", "blocking"], optional = true }
# Benchmark dependencies (feature-gated)
hdrhistogram = { version = "7.5", optional = true }
tokio-tungstenite = { version = "0.24", optional = true }
# Profiling dependencies (feature-gated)
dhat = { version = "0.3", optional = true }
# JAM RPC client dependencies
jam-std-common = "0.1.26"
jam-types = { version = "0.1.26", default-features = false, features = ["std"] }
jam-tooling = "0.1.26"
jam-program-blob-common = { version = "0.1.26", default-features = false, features = ["std"] }
jam-codec = { version = "0.1.1", default-features = false, features = ["derive", "max-encoded-len"] }
jsonrpsee = { version = "0.24.2", default-features = false, features = ["http-client", "ws-client"] }
url = "2.5"
[features]
default = ["jemalloc"]
jemalloc = ["tikv-jemallocator"]
dashboard = ["ratatui", "crossterm", "clap", "reqwest"]
bench = ["reqwest", "hdrhistogram", "tokio-tungstenite"]
profiling = ["dhat"]
[dev-dependencies]
axum-test = "15.0"
tokio-tungstenite = "0.24"
futures-util = "0.3"
[profile.dev]
opt-level = 1
incremental = true
lto = false
codegen-units = 256
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
[profile.profiling]
inherits = "release"
debug = true
strip = false