forked from kkrt-labs/kakarot-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
192 lines (173 loc) · 7.4 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
[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.79"
[lints]
rust.missing_debug_implementations = "warn"
rust.unreachable_pub = "warn"
rustdoc.all = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
[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"
# Serde
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false }
# Others
async-trait = { version = "0.1", default-features = false }
auto_impl = { version = "1", default-features = false }
bytes = { version = "1.6", default-features = false }
dotenvy = { version = "0.15", default-features = false }
eyre = { version = "0.6", default-features = false }
futures = { version = "0.3", default-features = false }
itertools = { version = "0.13", default-features = false }
lazy_static = { version = "1", default-features = false }
log = { version = "0.4", default-features = false }
mongodb = { version = "3.0", default-features = false, features = [
"rustls-tls",
"compat-3-0-0",
] }
thiserror = { version = "1", default-features = false }
tokio = { version = "1", features = ["macros"] }
tower = { version = "0.4", default-features = false }
tower-http = { version = "0.5", features = ["cors"] }
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
url = { version = "2.5", default-features = false }
# 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-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-wallet = { version = "0.1.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 = "45b8528", 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 }
starknet_api = { version = "0.12.0-dev.0", 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.0", default-features = false, optional = true }
katana-primitives = { git = 'https://github.com/dojoengine/dojo', tag = "v1.0.0-alpha.0", default-features = false, features = [
"serde",
], optional = true }
[patch.crates-io]
cairo-felt = { git = "https://github.com/dojoengine/cairo-rs.git", rev = "1031381" }
cairo-vm = { git = "https://github.com/dojoengine/cairo-rs.git", rev = "1031381" }
alloy-signer-wallet = { git = "https://github.com/alloy-rs/alloy", rev = "00d81d7" }
starknet-core = { git = "https://github.com/kariy/starknet-rs", branch = "dojo-patch" }
starknet-types-core = { git = "https://github.com/dojoengine/types-rs", rev = "289e2f0" }
[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-json-abi",
"alloy-primitives",
"alloy-signer-wallet",
"anyhow",
"dep:arbitrary",
"dojo-test-utils",
"ef-testing",
"foundry-config",
"katana-primitives",
"rand",
"rayon",
"rstest",
"serde_with",
"starknet_api",
"strum",
"strum_macros",
"testcontainers",
"tokio-stream",
"tokio-util",
"walkdir",
]
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"]