Skip to content

Commit 7a72fd5

Browse files
authored
chore: bump dependencies (#1834)
1 parent 66ea84e commit 7a72fd5

File tree

34 files changed

+570
-687
lines changed

34 files changed

+570
-687
lines changed

Cargo.lock

Lines changed: 439 additions & 557 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rust-version = "1.85.0"
3838
version = "0.3.1"
3939

4040
[workspace.dependencies]
41-
alloy = { version = "0.15", default-features = false, features = ["std", "serde", "getrandom"] }
41+
alloy = { version = "1.0", default-features = false, features = ["std", "serde", "getrandom"] }
4242
alloy-chains = "0.2"
4343
alloy-hardforks = "0.2.0"
4444
alloy-rlp = { version = "0.3.8", default-features = false, features = ["derive"] }
@@ -48,9 +48,9 @@ bytes = "1.3.0"
4848
chrono = "0.4.38"
4949
clap = { version = "4.2.1", features = ["derive"] }
5050
delay_map = "0.4.0"
51-
directories = "3.0"
51+
directories = "6.0"
5252
discv5 = { version = "0.9.1", features = ["serde"] }
53-
env_logger = "0.9.0"
53+
env_logger = "0.11"
5454
eth_trie = "0.6"
5555
ethereum_hashing = "0.7.0"
5656
ethereum_serde_utils = "0.8"
@@ -59,47 +59,45 @@ ethereum_ssz_derive = "0.9"
5959
futures = "0.3.23"
6060
futures-util = "0.3.23"
6161
hex = "0.4.3"
62-
humanize-duration = "0.0.6"
63-
itertools = "0.13.0"
64-
jsonrpsee = "0.24.4"
65-
keccak-hash = "0.10.0"
62+
humanize-duration = "0.0.7"
63+
itertools = "0.14"
64+
jsonrpsee = "0.24"
65+
keccak-hash = "0.11"
6666
lazy_static = "1.4.0"
67-
parking_lot = "0.11.2"
67+
parking_lot = "0.12"
6868
prometheus_exporter = "0.8.4"
6969
quickcheck = "1.0.3"
7070
r2d2 = "0.8.9"
71-
r2d2_sqlite = "0.24.0"
72-
rand = "0.8.5"
71+
r2d2_sqlite = "0.28"
72+
rand = "0.9"
7373
rayon = "1.10.0"
7474
reqwest = { version = "0.12.7", features = ["native-tls-vendored", "json"] }
75-
reth-ipc = { tag = "v1.0.8", git = "https://github.com/paradigmxyz/reth.git"}
76-
revm = { version = "22.0", default-features = false, features = ["std", "secp256k1", "serde-json", "c-kzg"] }
77-
revm-primitives = { version = "18.0.0", default-features = false, features = ["std", "serde"] }
78-
rstest = "0.18.2"
75+
reth-ipc = { tag = "v1.3.12", git = "https://github.com/paradigmxyz/reth.git"}
76+
revm = { version = "23.1", default-features = false, features = ["std", "secp256k1", "serde-json", "c-kzg"] }
77+
revm-primitives = { version = "19.0.0", default-features = false, features = ["std", "serde"] }
78+
rstest = "0.25"
7979
rust-embed = "8.5.0"
80-
rusqlite = { version = "0.31.0", features = ["bundled"] }
81-
scraper = "0.18.1"
80+
rusqlite = { version = "0.35", features = ["bundled"] }
81+
scraper = "0.23"
8282
serde = { version = "1.0.150", features = ["derive"] }
8383
serde_json = "1.0.95"
8484
serde_yaml = "0.9.33"
85-
serde-this-or-that = "0.4.2"
86-
serial_test = "0.5.1"
87-
sha3 = "0.9.1"
85+
serde-this-or-that = "0.5"
86+
serial_test = "3.2"
87+
sha3 = "0.10"
8888
snap = "1.1.1"
8989
ssz_types = "0.11.0"
90-
strum = { version = "0.26.1", features = ["derive"] }
90+
strum = { version = "0.27", features = ["derive"] }
9191
tempfile = "3.3.0"
9292
test-log = { version = "0.2.11", features = ["trace"] }
93-
thiserror = "1.0.57"
93+
thiserror = "2.0"
9494
tokio = { version = "1.14.0", features = ["full"] }
9595
tokio-test = "0.4.2"
9696
tracing = "0.1.36"
9797
tracing-subscriber = "0.3.15"
98-
tracing-test = "0.1"
9998
tree_hash = "0.10"
10099
tree_hash_derive = "0.10"
101100
uds_windows = "1.0.1"
102-
ureq = { version = "2.5.0", features = ["json"] }
103101
url = "2.3.1"
104102
utp-rs = "0.1.0-alpha.17"
105103

@@ -122,7 +120,7 @@ trin-storage = { path = "crates/storage" }
122120
trin-utils = { path = "crates/utils" }
123121
trin-validation = { path = "crates/validation" }
124122

125-
crunchy = "=0.2.2"
123+
crunchy = "0.2.3"
126124

127125
[patch.crates-io]
128126
# TODO: remove this when our other dependencies update to getrandom 0.3 as it is a breaking change

bin/portal-bridge/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ url.workspace = true
5252
env_logger.workspace = true
5353
rstest.workspace = true
5454
test-log.workspace = true
55-
tracing-test.workspace = true

bin/portal-bridge/src/bridge/e2hs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use futures::{
2727
FutureExt,
2828
};
2929
use itertools::Itertools;
30-
use rand::seq::SliceRandom;
30+
use rand::{rng, seq::SliceRandom};
3131
use reqwest::{
3232
header::{HeaderMap, HeaderValue, CONTENT_TYPE},
3333
Client,
@@ -131,7 +131,7 @@ impl E2HSBridge {
131131
let epochs = block_range_to_epochs(self.block_range.start, block_range_end);
132132
let mut epoch_indexes: Vec<u64> = epochs.keys().cloned().sorted().collect();
133133
if self.random_fill {
134-
epoch_indexes.shuffle(&mut rand::thread_rng());
134+
epoch_indexes.shuffle(&mut rng());
135135
}
136136

137137
let mut latest_task = None;

bin/portal-bridge/src/census/scoring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::{collections::HashMap, time::Duration};
22

33
use ethportal_api::types::{accept_code::AcceptCode, portal_wire::OfferTrace};
44
use itertools::Itertools;
5-
use rand::{seq::SliceRandom, thread_rng};
5+
use rand::{rng, seq::IndexedRandom};
66

77
use super::peer::{Peer, PeerInfo};
88

@@ -141,7 +141,7 @@ impl<W: Weight> PeerSelector<W> {
141141
.collect_vec();
142142

143143
weighted_peers
144-
.choose_multiple_weighted(&mut thread_rng(), self.limit, |(_peer, weight)| *weight)
144+
.choose_multiple_weighted(&mut rng(), self.limit, |(_peer, weight)| *weight)
145145
.expect("choosing random sample shouldn't fail")
146146
.map(|(peer, _weight)| peer.peer_info())
147147
.collect()

bin/trin-execution/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ version.workspace = true
1414
[dependencies]
1515
alloy = { workspace = true, features = ["eips", "rpc-types-engine", "serde"] }
1616
alloy-rlp.workspace = true
17-
alloy-rpc-types-engine = { version = "0.15", default-features = false, features = ["serde"] }
17+
alloy-rpc-types-engine = { version = "1.0", default-features = false, features = ["serde"] }
1818
anyhow.workspace = true
1919
clap.workspace = true
2020
ethportal-api.workspace = true
@@ -31,9 +31,9 @@ rand.workspace = true
3131
rayon.workspace = true
3232
reqwest = { workspace = true, features = ["stream"] }
3333
revm.workspace = true
34-
revm-inspectors = "0.20.0"
34+
revm-inspectors = "0.22"
3535
revm-primitives.workspace = true
36-
rocksdb = "0.22.0"
36+
rocksdb = "0.23"
3737
serde = { workspace = true, features = ["rc"] }
3838
serde_json.workspace = true
3939
thiserror.workspace = true
@@ -44,4 +44,3 @@ trin-utils.workspace = true
4444

4545
[dev-dependencies]
4646
test-log.workspace = true
47-
tracing-test.workspace = true

bin/trin-execution/src/trie_walker/filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use alloy::primitives::U256;
2-
use rand::{thread_rng, Rng};
2+
use rand::{rng, Rng};
33

44
use crate::utils::nibbles_to_right_padded_b256;
55

@@ -47,7 +47,7 @@ impl Filter {
4747
};
4848
}
4949

50-
Self::new(thread_rng().gen_range(0..slice_count), slice_count)
50+
Self::new(rng().random_range(0..slice_count), slice_count)
5151
}
5252

5353
/// Check if a path is included in the filter

bin/trin-execution/src/trie_walker/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod filter;
44
use std::sync::Arc;
55

66
use alloy::primitives::{Bytes, B256};
7-
use anyhow::{anyhow, Ok};
7+
use anyhow::anyhow;
88
use db::TrieWalkerDb;
99
use eth_trie::{decode_node, node::Node};
1010
use filter::Filter;
@@ -176,7 +176,6 @@ mod tests {
176176

177177
use alloy::primitives::{keccak256, Address, B256, U256};
178178
use eth_trie::{EthTrie, RootWithTrieDiff, Trie};
179-
use tracing_test::traced_test;
180179
use trin_utils::dir::create_temp_test_dir;
181180

182181
use super::*;
@@ -188,7 +187,6 @@ mod tests {
188187
};
189188

190189
#[tokio::test]
191-
#[traced_test]
192190
async fn test_state_walker() {
193191
let temp_directory = create_temp_test_dir().unwrap();
194192
let db = Arc::new(setup_rocksdb(temp_directory.path()).unwrap());

bin/trin-execution/tests/content_generation.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use ethportal_api::{
1010
};
1111
use revm_primitives::keccak256;
1212
use tracing::info;
13-
use tracing_test::traced_test;
1413
use trin_execution::{
1514
config::StateConfig,
1615
content::{
@@ -86,7 +85,6 @@ impl Stats {
8685
/// BLOCKS=1000000 cargo test --release -p trin-execution --test content_generation -- --include-ignored --nocapture
8786
/// ```
8887
#[tokio::test]
89-
#[traced_test]
9088
#[ignore = "takes too long"]
9189
async fn test_we_can_generate_content_key_values_up_to_x() -> Result<()> {
9290
let blocks = std::env::var("BLOCKS")?.parse::<u64>()?;

bin/trin-execution/tests/export_import.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use tracing::info;
2-
use tracing_test::traced_test;
32
use trin_execution::{
43
cli::{ExportStateConfig, ImportStateConfig},
54
config::StateConfig,
@@ -22,7 +21,6 @@ use trin_utils::dir::create_temp_test_dir;
2221
/// BLOCKS=10000 cargo test -p trin-execution --test export_import -- --nocapture
2322
/// ```
2423
#[tokio::test]
25-
#[traced_test]
2624
#[ignore = "This test downloads data from a remote server"]
2725
async fn execute_export_import_execute() -> anyhow::Result<()> {
2826
let blocks = std::env::var("BLOCKS")

0 commit comments

Comments
 (0)