-
Notifications
You must be signed in to change notification settings - Fork 105
/
Cargo.toml
245 lines (220 loc) · 8.85 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
235
236
237
238
239
240
241
242
243
244
245
[package]
name = "kakarot-rpc"
version = "0.7.5"
edition = "2021"
authors = [
"Abdelhamid Bakhta <@abdelhamidbakhta>",
"Elias Tazartes <@eikix>",
"Clement Walter <@clementwalter>",
"Gregory Edison <@greged93>",
"Johann Bestowrous <@jobez>",
"Harsh Bajpai <@bajpai244>",
"Danilo Kim <@danilowhk>",
]
description = "RPC node for the Kakarot zk EVM"
homepage = "https://github.com/kkrt-labs"
repository = "https://github.com/kkrt-labs/kakarot-rpc"
readme = "./README.md"
license = "MIT"
rust-version = "1.82"
# Lints
[lints]
rust.missing_debug_implementations = "warn"
rust.unreachable_pub = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rustdoc.all = "warn"
[lints.clippy]
# all lints that are on by default (correctness, suspicious, style, complexity, perf)
all = { level = "warn", priority = -1 }
# new lints that are still under development
nursery = { level = "warn", priority = -1 }
# avoid lints that are too pedantic
future_not_send = "allow"
fallible_impl_from = "allow"
# lints which are rather strict or have occasional false positives
pedantic = { level = "warn", priority = -1 }
# avoid lints that are too pedantic
must_use_candidate = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
default_trait_access = "allow"
module_name_repetitions = "allow"
no_effect_underscore_binding = "allow"
# Deps
[dependencies]
# Starknet dependencies
cainome = { git = "https://github.com/cartridge-gg/cainome", tag = "v0.4.1", default-features = false, features = [
"abigen-rs",
] }
starknet = { version = "0.12", default-features = false }
num-traits = { version = "0.2", default-features = false }
# Ethereum dependencies
alloy-consensus = { version = "0.5.4", default-features = false }
alloy-contract = { version = "0.5.4", default-features = false }
alloy-provider = { version = "0.5.4", default-features = false, optional = true }
alloy-rlp = { version = "0.3.8", default-features = false }
alloy-rpc-types = { version = "0.5.4", features = [
"eth",
"arbitrary",
], default-features = false }
alloy-rpc-types-txpool = { version = "0.5.4", default-features = false }
alloy-rpc-types-trace = { version = "0.5.4", default-features = false }
alloy-sol-types = { version = "0.8.4", default-features = false }
jsonrpsee = { version = "0.24", features = ["macros", "server"] }
reth-chainspec = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false, features = [
"std",
] }
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false, features = [
"std",
] }
reth-execution-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
reth-node-api = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
reth-primitives = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false, features = [
"alloy-compat",
"std",
"arbitrary",
] }
reth-revm = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false, features = [
"std",
] }
reth-rpc = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
reth-rpc-types-compat = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
reth-testing-utils = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false, optional = true }
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.1.1", default-features = false }
revm-inspectors = "0.10.0"
# Error
eyre = { version = "0.6", default-features = false }
thiserror = { version = "1", default-features = false }
# Futures
async-trait = { version = "0.1", default-features = false }
futures = { version = "0.3", default-features = false }
tokio = { version = "1", features = ["macros"] }
# Network
tower = { version = "0.4", default-features = false }
tower-http = { version = "0.5", features = ["cors"] }
url = { version = "2.5", default-features = false }
# Serde
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false }
# Tracing
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
opentelemetry = { version = "0.23.0", features = ["metrics"] }
opentelemetry-otlp = { version = "0.16.0", features = [
"trace",
"tonic",
"metrics",
] }
opentelemetry_sdk = { version = "0.23.0", features = [
"trace",
"metrics",
"rt-tokio",
] }
tracing-opentelemetry = "0.24.0"
# Others
auto_impl = { version = "1", default-features = false }
bytes = { version = "1.6", default-features = false }
dotenvy = { version = "0.15", default-features = false }
itertools = { version = "0.13", default-features = false }
mongodb = { version = "3.0", default-features = false, features = [
"rustls-tls",
"compat-3-0-0",
] }
# Prometheus
prometheus = { version = "0.13", default-features = false }
hyper = { version = "1", default-features = false }
hyper-util = { version = "0.1", default-features = false, features = [
"server",
] }
http-body-util = { version = "0.1", default-features = false }
pin-project-lite = { version = "0.2", default-features = false }
#### Testing crates ####
# Ethereum
foundry-config = { git = "https://github.com/foundry-rs/foundry", branch = "master", optional = true }
revm-interpreter = { version = "13.0", default-features = false, optional = true }
revm-primitives = { version = "13.0", default-features = false, optional = true }
# Alloy
alloy-dyn-abi = { version = "0.8.4", default-features = false }
alloy-eips = { version = "0.5.4", default-features = false }
alloy-json-abi = { version = "0.8.4", default-features = false, optional = true }
alloy-primitives = { version = "0.8.9", default-features = false }
alloy-signer-local = { version = "0.5.4", default-features = false, optional = true }
alloy-signer = { version = "0.5.4", default-features = false, optional = true }
alloy-serde = { version = "0.5.4", default-features = false }
# Starknet
dojo-test-utils = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.15", default-features = false, optional = true }
katana-node = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.15", default-features = false, optional = true }
katana-primitives = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.15", default-features = false, features = [
"serde",
], optional = true }
starknet_api = { version = "0.13.0-rc.0", optional = true }
starknet-crypto = { version = "0.7", optional = true }
# Misc
anyhow = { version = "1", default-features = false, optional = true }
arbitrary = { version = "1", features = ["derive"], optional = true }
clap = { version = "4.5.17", optional = true }
mockall = { version = "0.13.0", default-features = false, optional = true }
mockito = { version = "1.5.0", default-features = false, optional = true }
rand = { version = "0.8", default-features = false }
rayon = { version = "1", default-features = false, optional = true }
rstest = { version = "0.21", default-features = false, optional = true }
serde_with = { version = "3.9", default-features = false, optional = true }
strum = { version = "0.26", default-features = false, optional = true }
strum_macros = { version = "0.26", default-features = false, optional = true }
testcontainers = { version = "0.19", default-features = false, optional = true }
tokio-util = { version = "0.7", features = [
"codec",
], default-features = false, optional = true }
tokio-stream = { version = "0.1", default-features = false, optional = true }
walkdir = { version = "2.5", default-features = false, optional = true }
[dev-dependencies]
hex = { version = "0.4", default-features = false }
proptest = { version = "1.5", default-features = false }
reqwest = { version = "0.12", default-features = false }
toml = { version = "0.8", default-features = false }
tempfile = "3.8"
[features]
testing = [
"alloy-json-abi",
"alloy-signer-local",
"alloy-signer",
"anyhow",
"dep:arbitrary",
"dojo-test-utils",
"foundry-config",
"katana-node",
"katana-primitives",
"mockall",
"mockito",
"rayon",
"reth-testing-utils",
"revm-interpreter",
"revm-primitives",
"rstest",
"serde_with",
"starknet_api",
"starknet-crypto",
"strum",
"strum_macros",
"testcontainers",
"tokio-stream",
"tokio-util",
"walkdir",
]
binaries = ["clap"]
hive = []
forwarding = ["alloy-provider/reqwest"]
arbitrary = ["dep:arbitrary"]
[[bin]]
name = "katana_genesis"
required-features = ["testing"]
[[bin]]
name = "hive_genesis"
required-features = ["testing", "binaries"]
[[bin]]
name = "hive_chain"
required-features = ["testing", "binaries"]