From 49a66f72fcecc1c081e8459692b8aa13465de712 Mon Sep 17 00:00:00 2001 From: nym21 Date: Thu, 24 Jul 2025 17:32:38 +0200 Subject: [PATCH] crates: update rapidhash --- Cargo.lock | 34 +++++++++---------- Cargo.toml | 2 +- crates/brk_core/Cargo.toml | 2 +- .../brk_core/src/structs/addressbyteshash.rs | 4 +-- 4 files changed, 20 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0740b9304..379ff27b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1742,9 +1742,9 @@ checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" [[package]] name = "fjall" -version = "2.11.1" +version = "2.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5cb653019268f6dc8de3b254b633a2d233a775054349b804b9cfbf18bbe3426" +checksum = "0b25ad44cd4360a0448a9b5a0a6f1c7a621101cca4578706d43c9a821418aebc" dependencies = [ "byteorder", "byteview", @@ -2058,9 +2058,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.15" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f66d5bd4c6f02bf0542fad85d626775bab9258cf795a4256dcaf3161114d1df" +checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e" dependencies = [ "bytes", "futures-core", @@ -2179,9 +2179,9 @@ dependencies = [ [[package]] name = "io-uring" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013" +checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4" dependencies = [ "bitflags 2.9.1", "cfg-if", @@ -2351,9 +2351,9 @@ dependencies = [ [[package]] name = "libredox" -version = "0.1.4" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1580801010e535496706ba011c15f8532df6b42297d2e471fec38ceadd8c0638" +checksum = "4488594b9328dee448adb906d8b126d9b7deb7cf5c22161ee591610bb1be83c0" dependencies = [ "bitflags 2.9.1", "libc", @@ -2393,9 +2393,9 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" [[package]] name = "lsm-tree" -version = "2.10.1" +version = "2.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2bd4cdc451a8dcf11329190afb9b78eb8988bed07a3da29b8d73d2e0c731ff" +checksum = "55b6d7475a8dd22e749186968daacf8e2a77932b061b1bd263157987bbfc0c6c" dependencies = [ "byteorder", "crossbeam-skiplist", @@ -3429,9 +3429,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", @@ -3477,9 +3477,9 @@ dependencies = [ [[package]] name = "rapidhash" -version = "1.4.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9813f789f95ee4fe6b4d01834404d7cccacbc3f6c029343af910b3c2835eb9f1" +checksum = "2297bf4643b32dc85bf5f622c9a41a268db6c6a6a2a2e3b405958a5b014ad9e1" [[package]] name = "rayon" @@ -3503,9 +3503,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.13" +version = "0.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6" +checksum = "7e8af0dde094006011e6a740d4879319439489813bd0bcdc7d821beaeeff48ec" dependencies = [ "bitflags 2.9.1", ] @@ -3622,7 +3622,7 @@ dependencies = [ "http-body-util", "paste", "pin-project-lite", - "rand 0.9.1", + "rand 0.9.2", "rmcp-macros", "schemars 1.0.4", "serde", diff --git a/Cargo.toml b/Cargo.toml index cc818c9b2..d794495e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,7 @@ clap = { version = "4.5.41", features = ["string"] } clap_derive = "4.5.41" color-eyre = "0.6.5" derive_deref = "1.1.1" -fjall = "2.11.1" +fjall = "2.11.2" jiff = "0.2.15" libc = "0.2.174" log = { version = "0.4.27" } diff --git a/crates/brk_core/Cargo.toml b/crates/brk_core/Cargo.toml index 65813202b..41d099fd0 100644 --- a/crates/brk_core/Cargo.toml +++ b/crates/brk_core/Cargo.toml @@ -16,7 +16,7 @@ derive_deref = { workspace = true } fjall = { workspace = true } jiff = { workspace = true } log = { workspace = true } -rapidhash = "1.4.0" +rapidhash = "2.0.2" rlimit = "0.10.2" serde = { workspace = true } serde_bytes = { workspace = true } diff --git a/crates/brk_core/src/structs/addressbyteshash.rs b/crates/brk_core/src/structs/addressbyteshash.rs index 0f15c458a..538be5977 100644 --- a/crates/brk_core/src/structs/addressbyteshash.rs +++ b/crates/brk_core/src/structs/addressbyteshash.rs @@ -25,9 +25,7 @@ pub struct AddressBytesHash([u8; 8]); impl From<(&AddressBytes, OutputType)> for AddressBytesHash { fn from((address_bytes, outputtype): (&AddressBytes, OutputType)) -> Self { - let mut hasher = rapidhash::RapidHasher::default(); - hasher.write(address_bytes.as_slice()); - let mut slice = hasher.finish().to_le_bytes(); + let mut slice = rapidhash::v3::rapidhash_v3(address_bytes.as_slice()).to_le_bytes(); slice[0] = slice[0].wrapping_add(outputtype as u8); Self(slice) }