Skip to content

Commit ee31c57

Browse files
authored
fix(cargo): organized main Cargo.toml (#474)
1 parent 88ed67c commit ee31c57

File tree

1 file changed

+73
-55
lines changed

1 file changed

+73
-55
lines changed

Cargo.toml

Lines changed: 73 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,28 @@ alloy = { version = "0.4.0", features = [
164164
"node-bindings",
165165
] }
166166

167-
# Other third party dependencies
168-
paste = "1.0.15"
169-
anyhow = "1.0"
170-
bigdecimal = "0.4.5"
171-
assert_matches = "1.5"
172-
async-trait = "0.1"
173-
base64 = "0.22"
174-
sha3 = "0.10"
175-
bitvec = { version = "1.0", default-features = false, features = ["std"] }
176-
clap = { version = "4.4" }
177-
flate2 = "1.0"
178-
futures = { version = "0.3", default-features = false, features = ["std"] }
167+
# Instrumentation
168+
opentelemetry = { version = "0.25.0", features = ["metrics", "logs"] }
169+
opentelemetry_sdk = { version = "0.25.0", features = ["rt-tokio", "logs"] }
170+
opentelemetry-stdout = { version = "0.25.0" }
171+
opentelemetry-otlp = { version = "0.25.0", features = [
172+
"tonic",
173+
"metrics",
174+
"logs",
175+
] }
176+
opentelemetry-semantic-conventions = { version = "0.25.0" }
177+
opentelemetry-appender-tracing = { version = "0.25.0", default-features = false }
178+
tracing = { version = "0.1.40", default-features = false }
179+
tracing-core = { version = "0.1.32", default-features = false }
180+
tracing-subscriber = { version = "0.3.18", features = [
181+
"env-filter",
182+
"registry",
183+
"std",
184+
] }
185+
tracing-test = "0.2.5"
186+
tracing-opentelemetry = "0.26.0"
187+
188+
# Networking
179189
jsonrpsee = { version = "0.22", default-features = false, features = [
180190
"server",
181191
"client",
@@ -189,64 +199,72 @@ hyper-util = "0.1.9"
189199
http = "1.1.0"
190200
http-body-util = "0.1.2"
191201
ip_network = "0.4"
192-
lazy_static = { version = "1.4", default-features = false }
193-
once_cell = "1.19"
194-
num-traits = "0.2"
195-
num-bigint = "0.4"
196-
primitive-types = "0.12"
197-
rand = "0.8"
198-
indoc = "2"
199-
proc-macro2 = "1.0.86"
200-
quote = "1.0.26"
201-
syn = { version = "2.0.39", features = ["full"] }
202202
reqwest = { version = "0.12", features = ["blocking", "json"] }
203-
rstest = "0.18"
203+
url = { version = "2.4", features = ["serde"] }
204+
205+
# Async
206+
tokio = { version = "1.34", features = ["signal", "rt"] }
207+
tokio-util = "0.7.12"
208+
rayon = "1.10"
209+
futures = { version = "0.3", default-features = false, features = ["std"] }
210+
async-trait = "0.1"
211+
212+
# Serialization
204213
serde = { version = "1.0", default-features = false, features = ["std"] }
205214
serde_with = { version = "3.11", default-features = false, features = [
206215
"alloc",
207216
"macros",
208217
] }
209218
serde_json = { version = "1.0", default-features = false, features = ["std"] }
210219
serde_yaml = { version = "0.9.34" }
211-
thiserror = "2.0"
212-
tokio = { version = "1.34", features = ["signal", "rt"] }
213-
tokio-util = "0.7.12"
214-
url = { version = "2.4", features = ["serde"] }
215-
rayon = "1.10"
216220
bincode = "1.3"
217-
fdlimit = "0.3.0"
221+
222+
# Numbers
223+
base64 = "0.22"
224+
bigdecimal = "0.4.5"
225+
num-traits = "0.2"
226+
num-bigint = "0.4"
227+
primitive-types = "0.12"
228+
rand = "0.8"
229+
crypto-bigint = "0.5.5"
230+
231+
# Std extensions
232+
lazy_static = { version = "1.4", default-features = false }
233+
once_cell = "1.19"
234+
itertools = "0.13.0"
235+
bitvec = { version = "1.0", default-features = false, features = ["std"] }
236+
bytes = "1.6.0"
237+
238+
# Error handling
239+
thiserror = "2.0"
240+
anyhow = "1.0"
241+
242+
# Testing
243+
rstest = "0.18"
218244
proptest = "1.5.0"
219245
proptest-derive = "0.5.0"
220246
proptest-state-machine = "0.3.1"
221-
dotenv = "0.15.0"
222-
httpmock = "0.7.0"
223247
tempfile = "3.10.1"
248+
httpmock = "0.7.0"
224249
mockall = "0.13.0"
225-
itertools = "0.13.0"
226-
regex = "1.10.5"
227-
bytes = "1.6.0"
228-
crypto-bigint = "0.5.5"
250+
fdlimit = "0.3.0"
251+
assert_matches = "1.5"
229252

230-
# Instrumentation
231-
opentelemetry = { version = "0.25.0", features = ["metrics", "logs"] }
232-
opentelemetry_sdk = { version = "0.25.0", features = ["rt-tokio", "logs"] }
233-
opentelemetry-stdout = { version = "0.25.0" }
234-
opentelemetry-otlp = { version = "0.25.0", features = [
235-
"tonic",
236-
"metrics",
237-
"logs",
238-
] }
239-
opentelemetry-semantic-conventions = { version = "0.25.0" }
240-
opentelemetry-appender-tracing = { version = "0.25.0", default-features = false }
241-
tracing = { version = "0.1.40", default-features = false }
242-
tracing-core = { version = "0.1.32", default-features = false }
243-
tracing-subscriber = { version = "0.3.18", features = [
244-
"env-filter",
245-
"registry",
246-
"std",
247-
] }
248-
tracing-test = "0.2.5"
249-
tracing-opentelemetry = "0.26.0"
253+
# Macros
254+
indoc = "2"
255+
proc-macro2 = "1.0.86"
256+
quote = "1.0.26"
257+
syn = { version = "2.0.39", features = ["full"] }
258+
paste = "1.0.15"
259+
260+
# Setup
261+
clap = { version = "4.4" }
262+
dotenv = "0.15.0"
263+
264+
# Misc
265+
flate2 = "1.0"
266+
regex = "1.10.5"
267+
sha3 = "0.10"
250268

251269
[patch.crates-io]
252270
rocksdb = { git = "https://github.com/madara-alliance/rust-rocksdb", branch = "read-options-set-raw-snapshot" }

0 commit comments

Comments
 (0)