chore(deps): bump breaking deps (#14570)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
DaniPopes
2025-02-19 12:36:15 +01:00
committed by GitHub
parent 1e40e2dca2
commit c9a348dd2c
27 changed files with 304 additions and 233 deletions

View File

@ -15,7 +15,7 @@ workspace = true
proc-macro = true
[dependencies]
convert_case = "0.6.0"
convert_case = "0.7.0"
proc-macro2.workspace = true
quote.workspace = true
syn.workspace = true

View File

@ -37,7 +37,7 @@ thiserror.workspace = true
tempfile = { workspace = true, optional = true }
derive_more.workspace = true
rustc-hash = { workspace = true, optional = true }
sysinfo = { version = "0.32", default-features = false, features = ["system"] }
sysinfo = { version = "0.33", default-features = false, features = ["system"] }
parking_lot = { workspace = true, optional = true }
# arbitrary utils

View File

@ -112,7 +112,7 @@ impl ProcessUID {
system.refresh_processes_specifics(
sysinfo::ProcessesToUpdate::Some(&[pid2]),
true,
ProcessRefreshKind::new(),
ProcessRefreshKind::nothing(),
);
system.process(pid2).map(|process| Self { pid, start_time: process.start_time() })
}
@ -141,9 +141,11 @@ impl ProcessUID {
/// Whether a process with this `pid` and `start_time` exists.
fn is_active(&self) -> bool {
System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()))
.process(self.pid.into())
.is_some_and(|p| p.start_time() == self.start_time)
System::new_with_specifics(
RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()),
)
.process(self.pid.into())
.is_some_and(|p| p.start_time() == self.start_time)
}
/// Writes `pid` and `start_time` to a file.

View File

@ -34,7 +34,6 @@ read-tx-timeouts = ["dep:dashmap"]
pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] }
criterion.workspace = true
rand.workspace = true
rand_xorshift = "0.3"
tempfile.workspace = true
[[bench]]

View File

@ -2,8 +2,7 @@
mod utils;
use criterion::{criterion_group, criterion_main, Criterion};
use rand::{prelude::SliceRandom, SeedableRng};
use rand_xorshift::XorShiftRng;
use rand::{prelude::SliceRandom, rngs::StdRng, SeedableRng};
use reth_libmdbx::{ffi::*, ObjectLength, WriteFlags};
use std::{hint::black_box, ptr};
use utils::*;
@ -15,7 +14,7 @@ fn bench_get_rand(c: &mut Criterion) {
let db = txn.open_db(None).unwrap();
let mut keys: Vec<String> = (0..n).map(get_key).collect();
keys.shuffle(&mut XorShiftRng::from_seed(Default::default()));
keys.shuffle(&mut StdRng::from_seed(Default::default()));
c.bench_function("bench_get_rand", |b| {
b.iter(|| {
@ -35,7 +34,7 @@ fn bench_get_rand_raw(c: &mut Criterion) {
let db = txn.open_db(None).unwrap();
let mut keys: Vec<String> = (0..n).map(get_key).collect();
keys.shuffle(&mut XorShiftRng::from_seed(Default::default()));
keys.shuffle(&mut StdRng::from_seed(Default::default()));
let dbi = db.dbi();
@ -71,7 +70,7 @@ fn bench_put_rand(c: &mut Criterion) {
let db = txn.commit_and_rebind_open_dbs().unwrap().2.remove(0);
let mut items: Vec<(String, String)> = (0..n).map(|n| (get_key(n), get_data(n))).collect();
items.shuffle(&mut XorShiftRng::from_seed(Default::default()));
items.shuffle(&mut StdRng::from_seed(Default::default()));
c.bench_function("bench_put_rand", |b| {
b.iter(|| {
@ -88,7 +87,7 @@ fn bench_put_rand_raw(c: &mut Criterion) {
let (_dir, env) = setup_bench_db(0);
let mut items: Vec<(String, String)> = (0..n).map(|n| (get_key(n), get_data(n))).collect();
items.shuffle(&mut XorShiftRng::from_seed(Default::default()));
items.shuffle(&mut StdRng::from_seed(Default::default()));
let dbi = env.begin_ro_txn().unwrap().open_db(None).unwrap().dbi();