-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
234 lines (197 loc) · 6.27 KB
/
Cargo.toml
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
[package]
name = "stratus"
version = "0.1.0"
edition = "2021"
default-run = "stratus"
# ------------------------------------------------------------------------------
# Runtime dependencies
# ------------------------------------------------------------------------------
[dependencies]
# general
anyhow = "=1.0.86"
async-trait = "=0.1.80"
cfg-if = "=1.0.0"
chrono = { version = "=0.4.38", features = ["serde"] }
const_format = "=0.2.32"
const-hex = "=1.12.0"
derive_more = "=0.99.17"
derive-new = "=0.6.0"
hash_hasher = "=2.0.3"
hex_fmt = "=0.3.0"
hex-literal = "=0.4.1"
humantime = "=2.1.0"
indexmap = { version = "=2.2.6", features = ["serde"] }
itertools = "=0.13.0"
lazy_static = "=1.4.0"
nanoid = "=0.4.0"
nonempty = { version = "=0.10.0", features = ["serialize"] }
once_cell = "=1.19.0"
oneshot = "=0.1.8"
parking_lot = "=0.12.3"
paste = "=1.0.15"
phf = "=0.11.2"
pin-project = "=1.1.5"
rand = { version = "=0.8.5", features = ["small_rng"] }
rust_decimal = "=1.36.0"
rustc-hash = "=2.0.0"
smallvec = "=1.13.2"
static_assertions = "=1.1.0"
strum = "=0.26.2"
quick_cache = "=0.6.9"
sugars = "=3.0.1"
thiserror = "=1.0.61"
uuid = { version = "=1.10.0", features = ["v7"]}
# async
tokio = { version = "=1.38.0", features = [
"rt-multi-thread",
"macros",
"signal",
] }
tokio-util = "=0.7.11"
# config
clap = { version = "=4.5.7", features = ["derive", "env"] }
dotenvy = "=0.15.7"
# serialization
bincode = { version = "=1.3.3" }
display_json = "=0.2.1"
prost-types = "=0.12.6"
serde = "=1.0.203"
serde_json = "=1.0.117"
serde_urlencoded = "=0.7.1"
serde_with = "=3.8.1"
# parallelism
crossbeam-channel = "=0.5.13"
futures = "=0.3.30"
futures-timer = "=3.0.3"
futures-util = "=0.3.31"
futures-channel = "=0.3.31"
# ethereum / rpc
ethabi = "=18.0.0"
ethereum-types = "=0.14.1"
ethers-core = "=2.0.14"
keccak-hasher = "=0.15.3" # this version must be compatible with triehash
rlp = "=0.5.2"
triehash = "=0.8.4"
# network
jsonrpsee = { version = "=0.24.6", features = ["server", "client"] }
reqwest = { version = "=0.12.4", features = ["json"] }
tonic = "=0.11.0"
tower = "=0.4.13"
tower-http = { version = "=0.5.2", features = ["cors"] }
http = "=1.1.0"
# observability
console-subscriber = "=0.2.0"
log = "=0.4.20"
metrics = "=0.23.0"
metrics-exporter-prometheus = { version = "=0.15.0", optional = true }
opentelemetry = "=0.23.0"
opentelemetry_sdk = { version = "=0.23.0", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "=0.16.0", features = [
"http-proto",
"reqwest-client",
"reqwest-rustls",
"tls",
"tls-roots",
] }
sentry = "=0.34.0"
sentry-tracing = "=0.34.0"
tracing = { version = "=0.1.40", features = ["attributes"] }
tracing-opentelemetry = "=0.24.0"
tracing-subscriber = { version = "=0.3.18", features = ["env-filter", "json"] }
tracing-serde = "=0.1.3"
# storage
rocksdb = { version = "=0.22.0", features = ["multi-threaded-cf"] }
sqlx = { version = "=0.8.2", features = [
"runtime-tokio",
"postgres",
"bigdecimal",
"time",
] }
# test
fake = { version = "=2.9.2", features = ["chrono", "derive"] }
rdkafka = {version = "=0.36.2", features = ["ssl", "sasl"] }
sasl2-sys = { version = "=0.1.22", features = ["vendored"] }
# Historic events processor
indicatif = "=0.17.8"
# ------------------------------------------------------------------------------
# Platform specific dependencies
# ------------------------------------------------------------------------------
[target.'cfg(not(all(target_arch = "aarch64", target_os = "linux")))'.dependencies]
revm = { version = "=9.0.0", features = ["asm-keccak"] }
[target.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.dependencies]
revm = { version = "=9.0.0" }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = { version = "=0.6", optional = true }
# ------------------------------------------------------------------------------
# Patches
# ------------------------------------------------------------------------------
[patch.crates-io]
console-subscriber = { git = "https://github.com/tokio-rs/console.git", rev = "852a977bab71d0f6ae47c6c5c1c20b8679c9e576" }
# ------------------------------------------------------------------------------
# Dev dependencies
# ------------------------------------------------------------------------------
[dev-dependencies]
serde_plain = "=1.0.2"
tempfile = "=3.10.1"
glob = "=0.3.1"
# ------------------------------------------------------------------------------
# Build dependencies
# ------------------------------------------------------------------------------
[build-dependencies]
const-hex = "=1.12.0"
glob = "=0.3.1"
nom = "=7.1.3"
phf_codegen = "=0.11.2"
vergen = { version = "=8.2.4", features = [
"build",
"cargo",
"git",
"gitcl",
"rustc",
] }
# ------------------------------------------------------------------------------
# Binaries
# ------------------------------------------------------------------------------
[[bin]]
name = "rpc-downloader"
path = "src/bin/rpc_downloader.rs"
[[bin]]
name = "importer-offline"
path = "src/bin/importer_offline.rs"
[[bin]]
name = "historic_events_processor"
path = "src/bin/historic_events_processor.rs"
# ------------------------------------------------------------------------------
# Features
# ------------------------------------------------------------------------------
[features]
default = ["metrics", "tracing"]
# Application is running in develoment mode.
dev = []
# Enable runtime metrics collection.
metrics = ["dep:metrics-exporter-prometheus"]
# Enable runtime rocksdb metrics collection.
rocks_metrics = ["metrics"]
# Enable runtime tracing/spans collection.
tracing = []
# Changes to help us generate our flamegraphs
flamegraph = []
# Use Jemalloc as the global allocator
jemalloc = ["dep:tikv-jemallocator"]
# Use Jemalloc as the global allocator with profiling enabled
jeprof = ["tikv-jemallocator/profiling"]
# ------------------------------------------------------------------------------
# Lints
# ------------------------------------------------------------------------------
[lints.clippy]
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
default_trait_access = "warn"
disallowed_names = "warn"
manual_let_else = "warn"
semicolon_if_nothing_returned = "warn"
unused_async = "warn"
unused_self = "warn"
used_underscore_binding = "warn"
wildcard_imports = "warn"
unwrap_used = "allow"