forked from kkrt-labs/kakarot-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
209 lines (190 loc) · 8.06 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
[package]
name = "kakarot-rpc"
version = "0.1.0"
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"
[lints]
rust.missing_debug_implementations = "warn"
rust.unreachable_pub = "warn"
rustdoc.all = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny"
[lints.clippy]
# These are some of clippy's nursery (i.e., experimental) lints that we like.
# By default, nursery lints are allowed. Some of the lints below have made good
# suggestions which we fixed. The others didn't have any findings, so we can
# assume they don't have that many false positives. Let's enable them to
# prevent future problems.
branches_sharing_code = "warn"
clear_with_drain = "warn"
derive_partial_eq_without_eq = "warn"
empty_line_after_outer_attr = "warn"
equatable_if_let = "warn"
imprecise_flops = "warn"
iter_on_empty_collections = "warn"
iter_with_drain = "warn"
large_stack_frames = "warn"
manual_clamp = "warn"
mutex_integer = "warn"
needless_pass_by_ref_mut = "warn"
nonstandard_macro_braces = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
uninhabited_references = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
useless_let_if_seq = "warn"
# These are nursery lints which have findings. Allow them for now. Some are not
# quite mature enough for use in our codebase and some we don't really want.
# Explicitly listing should make it easier to fix in the future.
as_ptr_cast_mut = "allow"
cognitive_complexity = "allow"
collection_is_never_read = "allow"
debug_assert_with_mut_call = "allow"
empty_line_after_doc_comments = "allow"
fallible_impl_from = "allow"
future_not_send = "allow"
iter_on_single_items = "allow"
missing_const_for_fn = "allow"
needless_collect = "allow"
non_send_fields_in_send_ty = "allow"
option_if_let_else = "allow"
redundant_pub_crate = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
string_lit_as_bytes = "allow"
type_repetition_in_bounds = "allow"
unnecessary_struct_initialization = "allow"
use_self = "allow"
[dependencies]
# Starknet dependencies
cainome = { git = "https://github.com/cartridge-gg/cainome.git", tag = "v0.2.5", default-features = false, features = [
"abigen-rs",
] }
cairo-lang-starknet = { version = "2.5.4", default-features = false }
ef-testing = { git = "https://github.com/kkrt-labs/ef-tests.git", rev = "6189392", default-features = false, features = [
"v0",
], optional = true }
starknet = { version = "0.9.0", default-features = false }
starknet-crypto = { version = "0.6.1", default-features = false }
starknet_api = { version = "0.7.0-dev.0", default-features = false }
# Ethereum dependencies
alloy-rlp = { version = "0.3.4", default-features = false }
ethers = { version = "2.0.9", default-features = false }
ethers-solc = { version = "2.0.9", default-features = false }
jsonrpsee = { version = "0.21.0", features = ["macros", "server"] }
reth-primitives = { git = "https://github.com/paradigmxyz/reth.git", tag = "v0.2.0-beta.5", default-features = false, features = [
"arbitrary",
] }
reth-rpc-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v0.2.0-beta.5", default-features = false }
reth-rpc-types-compat = { git = "https://github.com/paradigmxyz/reth.git", tag = "v0.2.0-beta.5", default-features = false }
alloy-primitives = "0.6.4"
# Serde
serde = { version = "1.0.188", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false }
serde_with = { version = "2.3.1", default-features = false }
# Others
anyhow = { version = "1.0.68", default-features = false }
async-trait = { version = "0.1.58", default-features = false }
auto_impl = { version = "1.1.0", default-features = false }
bytes = { version = "1", default-features = false }
dotenvy = { version = "0.15", default-features = false }
env_logger = { version = "0.10.0", default-features = false }
eyre = { version = "0.6.8", default-features = false }
foundry-config = { git = "https://github.com/foundry-rs/foundry", branch = "master" }
futures = { version = "0.3.26", default-features = false }
hex = { version = "0.4", default-features = false }
itertools = { version = "0.12", default-features = false }
lazy_static = { version = "1.4.0", default-features = false }
log = { version = "0.4.17", default-features = false }
mongodb = { version = "2.8.0", default-features = false, features = [
"tokio-runtime",
] }
rayon = { version = "1.8.1", default-features = false, optional = true }
reqwest = { version = "0.11.13", default-features = false }
ruint = { version = "1.9.0", default-features = false, features = ["serde"] }
rstest = { version = "0.18.1", default-features = false }
testcontainers = { version = "0.15.0", default-features = false, optional = true }
thiserror = { version = "1.0.38", default-features = false }
tokio = { version = "1.21.2", features = ["macros"] }
tokio-util = { version = "0.7.10", features = [
"codec",
], default-features = false, optional = true }
tokio-stream = { version = "0.1.14", default-features = false, optional = true }
tower = { version = "0.4.12", default-features = false }
tower-http = { version = "0.4.4", default-features = false }
tracing = { version = "0.1.37", default-features = false }
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }
url = { version = "2.3.1", default-features = false }
walkdir = { version = "2.3.3", default-features = false }
rand = { version = "0.8.5", default-features = false, optional = true }
# Prometheus
governor = { version = "0.6.0", default-features = false, features = ["std"] }
prometheus = { version = "0.13.0", default-features = false }
hyper = { version = "0.14.16", default-features = false }
pin-project-lite = { version = "0.2", default-features = false }
# In order to use dojo-test-utils, we need to explicitly declare the same patches as them in our Cargo.toml
# Otherwise, underlying dependencies of dojo will not be patched and we will get a compilation error
# see https://github.com/dojoengine/dojo/issues/563
# When making changes to the rev, please also update to make file to the same rev in the `install-katana` rule.
dojo-test-utils = { git = 'https://github.com/dojoengine/dojo', tag = "v0.6.0-alpha.6", default-features = false }
katana-core = { git = 'https://github.com/dojoengine/dojo', tag = "v0.6.0-alpha.6", features = [
"messaging",
] }
katana-primitives = { git = 'https://github.com/dojoengine/dojo', tag = "v0.6.0-alpha.6", default-features = false, features = [
"serde",
] }
arbitrary = { version = "1", features = ["derive"] }
[patch."https://github.com/starkware-libs/blockifier"]
blockifier = { git = "https://github.com/dojoengine/blockifier", rev = "d38b979" }
[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" }
# we patch starknet_api because the version v0.7.0-rc.0 was removed from crates.io
# we need v0.7.0-rc.0 to be compatible with dojo.
starknet_api = { git = "https://github.com/starkware-libs/starknet-api.git", tag = "v0.7.0-rc.0" }
[dev-dependencies]
rstest = { version = "0.18.1", default-features = false }
toml = { version = "0.7.5", default-features = false }
[features]
testing = [
"testcontainers",
"rayon",
"ef-testing",
"tokio-util",
"tokio-stream",
"rand",
]
hive = []
arbitrary = ["rand"]
[[bin]]
name = "katana_genesis"
required-features = ["testing"]
[[bin]]
name = "hive_genesis"
required-features = ["testing"]
[[bin]]
name = "hive_chain"
required-features = ["testing"]