-
Notifications
You must be signed in to change notification settings - Fork 30
/
Cargo.toml
238 lines (218 loc) · 7.33 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
[workspace]
members = [
"crates/client/db",
"crates/client/exec",
"crates/client/sync",
"crates/client/eth",
"crates/client/rpc",
"crates/client/gateway",
"crates/client/analytics",
"crates/client/telemetry",
"crates/client/devnet",
"crates/client/mempool",
"crates/client/block_import",
"crates/node",
"crates/primitives/block",
"crates/primitives/convert",
"crates/primitives/transactions",
"crates/primitives/class",
"crates/primitives/gateway",
"crates/primitives/receipt",
"crates/primitives/state_update",
"crates/primitives/chain_config",
"crates/primitives/utils",
"crates/proc-macros",
"crates/tests",
"crates/cairo-test-contracts",
]
resolver = "2"
# Everything except test-related packages, so that they are not compiled when doing `cargo build`.
default-members = [
"crates/client/db",
"crates/client/exec",
"crates/client/sync",
"crates/client/eth",
"crates/client/gateway",
"crates/client/rpc",
"crates/client/telemetry",
"crates/client/devnet",
"crates/client/mempool",
"crates/client/block_import",
"crates/client/analytics",
"crates/node",
"crates/primitives/block",
"crates/primitives/convert",
"crates/primitives/transactions",
"crates/primitives/class",
"crates/primitives/gateway",
"crates/primitives/receipt",
"crates/primitives/state_update",
"crates/primitives/chain_config",
"crates/primitives/utils",
"crates/proc-macros",
]
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
print_stdout = "warn"
print_stderr = "warn"
# todo: uncomment these & fix them
# unwrap_used = "warn"
# missing_docs = "warn"
[profile.dev]
incremental = true
[profile.release]
panic = "unwind"
[profile.production]
codegen-units = 1 # Setting this to 1 allows for more optimizations at the cost of slower compile time
inherits = "release"
lto = "fat" # Enables Link Time Optimization, enabling more aggressive optimizations across the entire codebase
opt-level = 3 # Optimize for speed regardless of binary size or compile time
rpath = false # Disables adding rpath to the binary
strip = "symbols" # Removes debug info and symbold from final binary
[workspace.package]
authors = ["Madara <https://github.com/madara-alliance>"]
homepage = "https://madara.build"
edition = "2021"
repository = "https://github.com/madara-alliance/madara/"
version = "0.7.0"
license = "Apache-2.0"
[workspace.dependencies]
rocksdb = { version = "0.22", features = [
# "multi-threaded-cf",
] }
# Bonsai trie dependencies
bonsai-trie = { default-features = false, git = "https://github.com/cchudant/bonsai-trie.git", branch = "fix_inserts_remove_leaks", features = [
"std",
] }
# Madara proc macros
m-proc-macros = { path = "crates/proc-macros", default-features = false }
# Madara primtitives
mp-block = { path = "crates/primitives/block", default-features = false }
mp-convert = { path = "crates/primitives/convert", default-features = false }
mp-transactions = { path = "crates/primitives/transactions", default-features = false }
mp-class = { path = "crates/primitives/class", default-features = false }
mp-gateway = { path = "crates/primitives/gateway", default-features = false }
mp-receipt = { path = "crates/primitives/receipt", default-features = false }
mp-state-update = { path = "crates/primitives/state_update", default-features = false }
mp-utils = { path = "crates/primitives/utils", default-features = false }
mp-chain-config = { path = "crates/primitives/chain_config", default-features = false }
# Madara client
mc-analytics = { path = "crates/client/analytics" }
mc-telemetry = { path = "crates/client/telemetry" }
mc-db = { path = "crates/client/db" }
mc-exec = { path = "crates/client/exec" }
mc-rpc = { path = "crates/client/rpc" }
mc-gateway = { path = "crates/client/gateway" }
mc-sync = { path = "crates/client/sync" }
mc-eth = { path = "crates/client/eth" }
mc-mempool = { path = "crates/client/mempool" }
mc-block-import = { path = "crates/client/block_import" }
mc-devnet = { path = "crates/client/devnet" }
# Madara misc
m-cairo-test-contracts = { path = "crates/cairo-test-contracts" }
# Starknet dependencies
cairo-vm = "=1.0.1"
starknet-core = "0.11"
starknet-crypto = "0.7"
starknet-providers = "0.11"
starknet-signers = "0.9"
starknet = "0.11.0"
starknet-types-core = { version = "0.1.5", default-features = false, features = [
"hash",
] }
starknet-types-rpc = { version = "0.7.1", git = "https://github.com/starknet-io/types-rs" }
blockifier = "=0.8.0-rc.3"
starknet_api = "=0.13.0-rc.1"
cairo-lang-starknet-classes = "=2.7.0"
cairo-lang-utils = "=2.7.0"
alloy = { version = "0.4.0", features = [
"node-bindings",
"rpc-types",
"provider-http",
"contract",
"node-bindings",
] }
# Other third party dependencies
paste = "1.0.15"
anyhow = "1.0"
assert_matches = "1.5"
async-trait = "0.1"
sha3 = "0.10"
bitvec = { version = "1.0", default-features = false, features = ["std"] }
clap = { version = "4.4" }
flate2 = "1.0"
futures = { version = "0.3", default-features = false, features = ["std"] }
jsonrpsee = { version = "0.22", default-features = false, features = [
"server",
"client",
] }
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.4", features = ["cors"] }
governor = "0.6"
hyper = { version = "1.5.0", features = ["full"] }
hyper-tls = "0.6"
hyper-util = "0.1.9"
http = "1.1.0"
http-body-util = "0.1.2"
ip_network = "0.4"
lazy_static = { version = "1.4", default-features = false }
once_cell = "1.19"
log = { version = "0.4", features = [
"std",
"kv_std",
"release_max_level_debug",
] }
num-traits = "0.2"
num-bigint = "0.4"
primitive-types = "0.12"
rand = "0.8"
indoc = "2"
reqwest = { version = "0.12", features = ["blocking", "json"] }
rstest = "0.18"
serde = { version = "1.0", default-features = false, features = ["std"] }
serde_with = "3.9"
serde_json = { version = "1.0", default-features = false, features = ["std"] }
serde_yaml = { version = "0.9.34" }
thiserror = "1.0"
tokio = { version = "1.34", features = ["signal", "rt"] }
url = { version = "2.4", features = ["serde"] }
rayon = "1.10"
bincode = "1.3"
fdlimit = "0.3.0"
proptest = "1.5.0"
proptest-derive = "0.5.0"
dotenv = "0.15.0"
httpmock = "0.7.0"
tempfile = "3.10.1"
env_logger = "0.11.3"
mockall = "0.13.0"
serial_test = "3.1.1"
itertools = "0.13.0"
regex = "1.10.5"
bytes = "1.6.0"
crypto-bigint = "0.5.5"
# Instrumentation
opentelemetry = { version = "0.25.0", features = ["metrics", "logs"] }
opentelemetry_sdk = { version = "0.25.0", features = ["rt-tokio", "logs"] }
opentelemetry-stdout = { version = "0.25.0" }
opentelemetry-otlp = { version = "0.25.0", features = [
"tonic",
"metrics",
"logs",
] }
opentelemetry-semantic-conventions = { version = "0.25.0" }
opentelemetry-appender-tracing = { version = "0.25.0", default-features = false }
tracing = { version = "0.1.40", default-features = false }
tracing-core = { version = "0.1.32", default-features = false }
tracing-subscriber = { version = "0.3.18", features = [
"env-filter",
"registry",
"std",
] }
tracing-opentelemetry = "0.26.0"
[patch.crates-io]
starknet-core = { git = "https://github.com/kasarlabs/starknet-rs.git", branch = "fork" }
starknet-providers = { git = "https://github.com/kasarlabs/starknet-rs.git", branch = "fork" }
# wait for PR https://github.com/starknet-io/types-rs/pull/76 to be merged
starknet-types-core = { git = "https://github.com/kasarlabs/types-rs.git", branch = "feat-deserialize-v0.1.5" }