forked from kkrt-labs/kakarot-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
201 lines (179 loc) · 7.42 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
[package]
name = "kakarot-rpc"
version = "0.6.20"
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.80"
[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"
[dependencies]
# Starknet dependencies
cainome = { git = "https://github.com/cartridge-gg/cainome", tag = "v0.3.0", default-features = false, features = [
"abigen-rs",
] }
starknet = { version = "0.11", default-features = false }
num-traits = { version = "0.2", default-features = false }
# Ethereum dependencies
alloy-rlp = { version = "0.3.4", default-features = false }
alloy-sol-types = { version = "0.7.2", default-features = false }
alloy-contract = { git = "https://github.com/alloy-rs/alloy", rev = "00d81d7" }
jsonrpsee = { version = "0.23", features = ["macros", "server"] }
reth-primitives = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false, features = [
"alloy-compat",
] }
reth-rpc-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false, features = [
"arbitrary",
] }
reth-rpc-types-compat = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-revm = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-node-api = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
revm-inspectors = "0.4"
# 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
alloy = { version = "0.1.1", features = ["rpc-types"], optional = true }
alloy-dyn-abi = { version = "0.7.6", default-features = false }
alloy-json-abi = { version = "0.7.6", default-features = false, optional = true }
alloy-primitives = { version = "0.7.2", default-features = false, optional = true }
alloy-signer-local = { version = "0.2.0", default-features = false, optional = true }
alloy-signer = { version = "0.2.0", default-features = false, optional = true }
anyhow = { version = "1", default-features = false, optional = true }
arbitrary = { version = "1", features = ["derive"], optional = true }
ef-testing = { git = "https://github.com/kkrt-labs/ef-tests", rev = "2f5b44b", default-features = false, features = [
"v0",
], optional = true }
foundry-config = { git = "https://github.com/foundry-rs/foundry", branch = "master", optional = true }
rand = { version = "0.8", default-features = false, optional = true }
rayon = { version = "1", default-features = false, optional = true }
rstest = { version = "0.21", default-features = false, optional = true }
serde_with = { version = "2.3.1", 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 }
dojo-test-utils = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.2", default-features = false, optional = true }
katana-primitives = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.2", default-features = false, features = [
"serde",
], optional = true }
mockall = { version = "0.13.0", default-features = false, optional = true }
[patch.crates-io]
starknet-core = { git = "https://github.com/kariy/starknet-rs", branch = "dojo-patch" }
[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 }
[features]
testing = [
"alloy",
"alloy-json-abi",
"alloy-primitives",
"alloy-signer-local",
"alloy-signer",
"anyhow",
"dep:arbitrary",
"dojo-test-utils",
"ef-testing",
"foundry-config",
"katana-primitives",
"rand",
"rayon",
"rstest",
"serde_with",
"strum",
"strum_macros",
"testcontainers",
"tokio-stream",
"tokio-util",
"walkdir",
"mockall",
]
hive = []
arbitrary = ["rand", "dep:arbitrary"]
[[bin]]
name = "katana_genesis"
required-features = ["testing"]
[[bin]]
name = "hive_genesis"
required-features = ["testing"]
[[bin]]
name = "hive_chain"
required-features = ["testing"]