chore(deps): bump some breaking deps (#11388)

This commit is contained in:
DaniPopes
2024-10-01 19:26:47 +02:00
committed by GitHub
parent 707067ab4d
commit fbc01d6cfa
13 changed files with 166 additions and 121 deletions

View File

@@ -60,7 +60,11 @@ serde.workspace = true
serde_json.workspace = true
tracing.workspace = true
backon.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
secp256k1 = { workspace = true, features = [
"global-context",
"rand-std",
"recovery",
] }
# io
fdlimit.workspace = true
@@ -68,8 +72,8 @@ toml = { workspace = true, features = ["display"] }
# tui
comfy-table = "7.0"
crossterm = "0.27.0"
ratatui = { version = "0.27", default-features = false, features = [
crossterm = "0.28.0"
ratatui = { version = "0.28", default-features = false, features = [
"crossterm",
] }
@@ -88,5 +92,5 @@ dev = [
"dep:arbitrary",
"dep:proptest-arbitrary-interop",
"reth-primitives/arbitrary",
"reth-db-api/arbitrary"
"reth-db-api/arbitrary",
]

View File

@@ -347,7 +347,7 @@ where
let outer_chunks = Layout::default()
.direction(Direction::Vertical)
.constraints([Constraint::Percentage(95), Constraint::Percentage(5)].as_ref())
.split(f.size());
.split(f.area());
// Columns
{

View File

@@ -118,7 +118,7 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> Command<C>
match self.command {
Subcommands::Header { id } => {
let header = (move || get_single_header(fetch_client.clone(), id))
.retry(&backoff)
.retry(backoff)
.notify(|err, _| println!("Error requesting header: {err}. Retrying..."))
.await?;
println!("Successfully downloaded header: {header:?}");
@@ -132,7 +132,7 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> Command<C>
let header = (move || {
get_single_header(client.clone(), BlockHashOrNumber::Number(number))
})
.retry(&backoff)
.retry(backoff)
.notify(|err, _| println!("Error requesting header: {err}. Retrying..."))
.await?;
header.hash()
@@ -142,7 +142,7 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> Command<C>
let client = fetch_client.clone();
client.get_block_bodies(vec![hash])
})
.retry(&backoff)
.retry(backoff)
.notify(|err, _| println!("Error requesting block: {err}. Retrying..."))
.await?
.split();

View File

@@ -23,6 +23,6 @@ revm-primitives.workspace = true
[dev-dependencies]
reth-storage-api.workspace = true
rand.workspace = true
mockall = "0.12"
mockall = "0.13"
alloy-consensus.workspace = true

View File

@@ -36,7 +36,7 @@ procfs = "0.16.0"
[dev-dependencies]
reqwest.workspace = true
reth-chainspec.workspace = true
socket2 = { version = "0.4", default-features = false }
socket2 = { version = "0.5", default-features = false }
reth-provider = { workspace = true, features = ["test-utils"] }
[lints]

View File

@@ -1,7 +1,7 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![allow(missing_docs, rustdoc::missing_crate_level_docs)]
// The `optimism` feature must be enabled to use this crate.
#![cfg(feature = "optimism")]
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use clap::Parser;
use reth_node_builder::{engine_tree_config::TreeConfig, EngineNodeLauncher};

View File

@@ -43,13 +43,13 @@ metrics = { workspace = true, optional = true }
# misc
bytes.workspace = true
page_size = { version = "0.6.0", optional = true }
page_size = { version = "0.6.0", optional = true }
thiserror.workspace = true
tempfile = { workspace = true, optional = true }
derive_more.workspace = true
paste.workspace = true
rustc-hash = { workspace = true, optional = true }
sysinfo = { version = "0.30", default-features = false }
sysinfo = { version = "0.31", default-features = false, features = ["system"] }
# arbitrary utils
strum = { workspace = true, features = ["derive"], optional = true }

View File

@@ -104,7 +104,10 @@ impl ProcessUID {
fn new(pid: usize) -> Option<Self> {
let mut system = System::new();
let pid2 = sysinfo::Pid::from(pid);
system.refresh_process_specifics(pid2, ProcessRefreshKind::new());
system.refresh_processes_specifics(
sysinfo::ProcessesToUpdate::Some(&[pid2]),
ProcessRefreshKind::new(),
);
system.process(pid2).map(|process| Self { pid, start_time: process.start_time() })
}

View File

@@ -10,4 +10,4 @@ repository.workspace = true
[build-dependencies]
cc = "1.0"
bindgen = { version = "0.69", default-features = false, features = ["runtime"] }
bindgen = { version = "0.70", default-features = false, features = ["runtime"] }