Skip to content

Commit e0273ef

Browse files
authored
Merge of #6678
2 parents 815884a + 1243a85 commit e0273ef

File tree

77 files changed

+609
-608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+609
-608
lines changed

.github/workflows/test-suite.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,21 @@ jobs:
428428
cache-target: release
429429
- name: Run Makefile to trigger the bash script
430430
run: make cli-local
431+
cargo-sort:
432+
name: cargo-sort
433+
needs: [check-labels]
434+
if: needs.check-labels.outputs.skip_ci != 'true'
435+
runs-on: ubuntu-latest
436+
steps:
437+
- uses: actions/checkout@v4
438+
- name: Get latest version of stable Rust
439+
uses: moonrepo/setup-rust@v1
440+
with:
441+
channel: stable
442+
cache-target: release
443+
bins: cargo-sort
444+
- name: Run cargo sort to check if Cargo.toml files are sorted
445+
run: cargo sort --check --workspace
431446
# This job succeeds ONLY IF all others succeed. It is used by the merge queue to determine whether
432447
# a PR is safe to merge. New jobs should be added here.
433448
test-suite-success:
@@ -455,6 +470,7 @@ jobs:
455470
'compile-with-beta-compiler',
456471
'cli-check',
457472
'lockbud',
473+
'cargo-sort',
458474
]
459475
steps:
460476
- uses: actions/checkout@v4

Cargo.toml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ members = [
88
"beacon_node/builder_client",
99
"beacon_node/client",
1010
"beacon_node/eth1",
11-
"beacon_node/lighthouse_network",
12-
"beacon_node/lighthouse_network/gossipsub",
1311
"beacon_node/execution_layer",
1412
"beacon_node/http_api",
1513
"beacon_node/http_metrics",
14+
"beacon_node/lighthouse_network",
15+
"beacon_node/lighthouse_network/gossipsub",
1616
"beacon_node/network",
1717
"beacon_node/store",
1818
"beacon_node/timer",
@@ -30,40 +30,40 @@ members = [
3030
"common/eth2_interop_keypairs",
3131
"common/eth2_network_config",
3232
"common/eth2_wallet_manager",
33-
"common/metrics",
3433
"common/lighthouse_version",
3534
"common/lockfile",
3635
"common/logging",
3736
"common/lru_cache",
3837
"common/malloc_utils",
38+
"common/metrics",
39+
"common/monitoring_api",
3940
"common/oneshot_broadcast",
4041
"common/pretty_reqwest_error",
4142
"common/sensitive_url",
4243
"common/slot_clock",
4344
"common/system_health",
44-
"common/task_executor",
4545
"common/target_check",
46+
"common/task_executor",
4647
"common/test_random_derive",
4748
"common/unused_port",
4849
"common/validator_dir",
4950
"common/warp_utils",
50-
"common/monitoring_api",
51-
52-
"database_manager",
53-
54-
"consensus/int_to_bytes",
5551
"consensus/fixed_bytes",
5652
"consensus/fork_choice",
53+
54+
"consensus/int_to_bytes",
5755
"consensus/proto_array",
5856
"consensus/safe_arith",
5957
"consensus/state_processing",
6058
"consensus/swap_or_not_shuffle",
6159

6260
"crypto/bls",
63-
"crypto/kzg",
6461
"crypto/eth2_key_derivation",
6562
"crypto/eth2_keystore",
6663
"crypto/eth2_wallet",
64+
"crypto/kzg",
65+
66+
"database_manager",
6767

6868
"lcli",
6969

@@ -78,8 +78,8 @@ members = [
7878
"testing/execution_engine_integration",
7979
"testing/node_test_rig",
8080
"testing/simulator",
81-
"testing/test-test_logger",
8281
"testing/state_transition_vectors",
82+
"testing/test-test_logger",
8383
"testing/web3signer_tests",
8484

8585
"validator_client",
@@ -126,8 +126,8 @@ delay_map = "0.4"
126126
derivative = "2"
127127
dirs = "3"
128128
either = "1.9"
129-
# TODO: rust_eth_kzg is pinned for now while a perf regression is investigated
130-
# The crate_crypto_* dependencies can be removed from this file completely once we update
129+
# TODO: rust_eth_kzg is pinned for now while a perf regression is investigated
130+
# The crate_crypto_* dependencies can be removed from this file completely once we update
131131
rust_eth_kzg = "=0.5.1"
132132
crate_crypto_internal_eth_kzg_bls12_381 = "=0.5.1"
133133
crate_crypto_internal_eth_kzg_erasure_codes = "=0.5.1"
@@ -167,7 +167,13 @@ r2d2 = "0.8"
167167
rand = "0.8"
168168
rayon = "1.7"
169169
regex = "1"
170-
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "stream", "rustls-tls", "native-tls-vendored"] }
170+
reqwest = { version = "0.11", default-features = false, features = [
171+
"blocking",
172+
"json",
173+
"stream",
174+
"rustls-tls",
175+
"native-tls-vendored",
176+
] }
171177
ring = "0.16"
172178
rpds = "0.11"
173179
rusqlite = { version = "0.28", features = ["bundled"] }
@@ -176,7 +182,11 @@ serde_json = "1"
176182
serde_repr = "0.1"
177183
serde_yaml = "0.9"
178184
sha2 = "0.9"
179-
slog = { version = "2", features = ["max_level_debug", "release_max_level_debug", "nested-values"] }
185+
slog = { version = "2", features = [
186+
"max_level_debug",
187+
"release_max_level_debug",
188+
"nested-values",
189+
] }
180190
slog-async = "2"
181191
slog-term = "2"
182192
sloggers = { version = "2", features = ["json"] }
@@ -188,7 +198,12 @@ superstruct = "0.8"
188198
syn = "1"
189199
sysinfo = "0.26"
190200
tempfile = "3"
191-
tokio = { version = "1", features = ["rt-multi-thread", "sync", "signal", "macros"] }
201+
tokio = { version = "1", features = [
202+
"rt-multi-thread",
203+
"sync",
204+
"signal",
205+
"macros",
206+
] }
192207
tokio-stream = { version = "0.1", features = ["sync"] }
193208
tokio-util = { version = "0.7", features = ["codec", "compat", "time"] }
194209
tracing = "0.1.40"
@@ -267,7 +282,7 @@ validator_dir = { path = "common/validator_dir" }
267282
validator_http_api = { path = "validator_client/http_api" }
268283
validator_http_metrics = { path = "validator_client/http_metrics" }
269284
validator_metrics = { path = "validator_client/validator_metrics" }
270-
validator_store= { path = "validator_client/validator_store" }
285+
validator_store = { path = "validator_client/validator_store" }
271286
warp_utils = { path = "common/warp_utils" }
272287
xdelta3 = { git = "http://github.com/sigp/xdelta3-rs", rev = "50d63cdf1878e5cf3538e9aae5eed34a22c64e4a" }
273288
zstd = "0.13"

account_manager/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ authors = [
88
edition = { workspace = true }
99

1010
[dependencies]
11+
account_utils = { workspace = true }
1112
bls = { workspace = true }
1213
clap = { workspace = true }
13-
types = { workspace = true }
14-
environment = { workspace = true }
15-
eth2_network_config = { workspace = true }
1614
clap_utils = { workspace = true }
1715
directory = { workspace = true }
16+
environment = { workspace = true }
17+
eth2 = { workspace = true }
18+
eth2_keystore = { workspace = true }
19+
eth2_network_config = { workspace = true }
1820
eth2_wallet = { workspace = true }
1921
eth2_wallet_manager = { path = "../common/eth2_wallet_manager" }
20-
validator_dir = { workspace = true }
21-
tokio = { workspace = true }
22-
eth2_keystore = { workspace = true }
23-
account_utils = { workspace = true }
24-
slashing_protection = { workspace = true }
25-
eth2 = { workspace = true }
26-
safe_arith = { workspace = true }
27-
slot_clock = { workspace = true }
2822
filesystem = { workspace = true }
23+
safe_arith = { workspace = true }
2924
sensitive_url = { workspace = true }
25+
slashing_protection = { workspace = true }
26+
slot_clock = { workspace = true }
27+
tokio = { workspace = true }
28+
types = { workspace = true }
29+
validator_dir = { workspace = true }
3030
zeroize = { workspace = true }
3131

3232
[dev-dependencies]

beacon_node/Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@ write_ssz_files = [
2020
] # Writes debugging .ssz files to /tmp during block processing.
2121

2222
[dependencies]
23-
eth2_config = { workspace = true }
23+
account_utils = { workspace = true }
2424
beacon_chain = { workspace = true }
25-
types = { workspace = true }
26-
store = { workspace = true }
27-
client = { path = "client" }
2825
clap = { workspace = true }
29-
slog = { workspace = true }
30-
dirs = { workspace = true }
26+
clap_utils = { workspace = true }
27+
client = { path = "client" }
3128
directory = { workspace = true }
29+
dirs = { workspace = true }
3230
environment = { workspace = true }
33-
task_executor = { workspace = true }
34-
genesis = { workspace = true }
31+
eth2_config = { workspace = true }
3532
execution_layer = { workspace = true }
36-
lighthouse_network = { workspace = true }
37-
serde_json = { workspace = true }
38-
clap_utils = { workspace = true }
39-
hyper = { workspace = true }
33+
genesis = { workspace = true }
4034
hex = { workspace = true }
41-
slasher = { workspace = true }
35+
http_api = { workspace = true }
36+
hyper = { workspace = true }
37+
lighthouse_network = { workspace = true }
4238
monitoring_api = { workspace = true }
4339
sensitive_url = { workspace = true }
44-
http_api = { workspace = true }
45-
unused_port = { workspace = true }
40+
serde_json = { workspace = true }
41+
slasher = { workspace = true }
42+
slog = { workspace = true }
43+
store = { workspace = true }
4644
strum = { workspace = true }
47-
account_utils = { workspace = true }
45+
task_executor = { workspace = true }
46+
types = { workspace = true }
47+
unused_port = { workspace = true }

beacon_node/beacon_chain/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ portable = ["bls/supranational-portable"]
1818
test_backfill = []
1919

2020
[dev-dependencies]
21+
criterion = { workspace = true }
2122
maplit = { workspace = true }
2223
serde_json = { workspace = true }
23-
criterion = { workspace = true }
2424

2525
[dependencies]
2626
alloy-primitives = { workspace = true }
@@ -42,11 +42,11 @@ hex = { workspace = true }
4242
int_to_bytes = { workspace = true }
4343
itertools = { workspace = true }
4444
kzg = { workspace = true }
45-
metrics = { workspace = true }
4645
lighthouse_version = { workspace = true }
4746
logging = { workspace = true }
4847
lru = { workspace = true }
4948
merkle_proof = { workspace = true }
49+
metrics = { workspace = true }
5050
oneshot_broadcast = { path = "../../common/oneshot_broadcast/" }
5151
operation_pool = { workspace = true }
5252
parking_lot = { workspace = true }

beacon_node/beacon_processor/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ version = "0.1.0"
44
edition = { workspace = true }
55

66
[dependencies]
7-
slog = { workspace = true }
8-
itertools = { workspace = true }
9-
logging = { workspace = true }
10-
tokio = { workspace = true }
11-
tokio-util = { workspace = true }
12-
futures = { workspace = true }
137
fnv = { workspace = true }
14-
strum = { workspace = true }
15-
task_executor = { workspace = true }
16-
slot_clock = { workspace = true }
8+
futures = { workspace = true }
9+
itertools = { workspace = true }
1710
lighthouse_network = { workspace = true }
18-
types = { workspace = true }
11+
logging = { workspace = true }
1912
metrics = { workspace = true }
20-
parking_lot = { workspace = true }
2113
num_cpus = { workspace = true }
14+
parking_lot = { workspace = true }
2215
serde = { workspace = true }
16+
slog = { workspace = true }
17+
slot_clock = { workspace = true }
18+
strum = { workspace = true }
19+
task_executor = { workspace = true }
20+
tokio = { workspace = true }
21+
tokio-util = { workspace = true }
22+
types = { workspace = true }
2323

2424
[dev-dependencies]
2525
tokio = { workspace = true, features = ["test-util"] }

beacon_node/builder_client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = { workspace = true }
55
authors = ["Sean Anderson <[email protected]>"]
66

77
[dependencies]
8+
eth2 = { workspace = true }
9+
lighthouse_version = { workspace = true }
810
reqwest = { workspace = true }
911
sensitive_url = { workspace = true }
10-
eth2 = { workspace = true }
1112
serde = { workspace = true }
12-
lighthouse_version = { workspace = true }

beacon_node/client/Cargo.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@ authors = ["Sigma Prime <[email protected]>"]
55
edition = { workspace = true }
66

77
[dev-dependencies]
8+
operation_pool = { workspace = true }
89
serde_yaml = { workspace = true }
910
state_processing = { workspace = true }
10-
operation_pool = { workspace = true }
1111
tokio = { workspace = true }
1212

1313
[dependencies]
1414
beacon_chain = { workspace = true }
15-
store = { workspace = true }
16-
network = { workspace = true }
17-
timer = { path = "../timer" }
18-
lighthouse_network = { workspace = true }
19-
types = { workspace = true }
20-
eth2_config = { workspace = true }
21-
slot_clock = { workspace = true }
22-
serde = { workspace = true }
23-
serde_json = { workspace = true }
24-
slog = { workspace = true }
25-
tokio = { workspace = true }
26-
futures = { workspace = true }
15+
beacon_processor = { workspace = true }
16+
directory = { workspace = true }
2717
dirs = { workspace = true }
18+
environment = { workspace = true }
2819
eth1 = { workspace = true }
2920
eth2 = { workspace = true }
30-
kzg = { workspace = true }
31-
sensitive_url = { workspace = true }
21+
eth2_config = { workspace = true }
22+
ethereum_ssz = { workspace = true }
23+
execution_layer = { workspace = true }
24+
futures = { workspace = true }
3225
genesis = { workspace = true }
33-
task_executor = { workspace = true }
34-
environment = { workspace = true }
35-
metrics = { workspace = true }
36-
time = "0.3.5"
37-
directory = { workspace = true }
3826
http_api = { workspace = true }
3927
http_metrics = { path = "../http_metrics" }
28+
kzg = { workspace = true }
29+
lighthouse_network = { workspace = true }
30+
metrics = { workspace = true }
31+
monitoring_api = { workspace = true }
32+
network = { workspace = true }
33+
sensitive_url = { workspace = true }
34+
serde = { workspace = true }
35+
serde_json = { workspace = true }
4036
slasher = { workspace = true }
4137
slasher_service = { path = "../../slasher/service" }
42-
monitoring_api = { workspace = true }
43-
execution_layer = { workspace = true }
44-
beacon_processor = { workspace = true }
45-
ethereum_ssz = { workspace = true }
38+
slog = { workspace = true }
39+
slot_clock = { workspace = true }
40+
store = { workspace = true }
41+
task_executor = { workspace = true }
42+
time = "0.3.5"
43+
timer = { path = "../timer" }
44+
tokio = { workspace = true }
45+
types = { workspace = true }

0 commit comments

Comments
 (0)