Skip to content

Truly independent web browser

Meta: Update foldhash to version 0.2

Timothy Flynn260ada507eed
diff --git a/Cargo.lock b/Cargo.lock
index ac6cab248cf..9457588a2f3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -861,7 +861,7 @@ name = "libcompositing_rust"
version = "0.1.0"
dependencies = [
"cbindgen",
- "foldhash 0.1.5",
+ "foldhash 0.2.0",
"ladybird_allocator",
"libgfx_rust",
"rustc-demangle",
@@ -872,7 +872,7 @@ name = "libgfx_rust"
version = "0.1.0"
dependencies = [
"cbindgen",
- "foldhash 0.1.5",
+ "foldhash 0.2.0",
"ladybird_allocator",
"rustc-demangle",
"yuv",
@@ -927,7 +927,7 @@ dependencies = [
"cc",
"fARM64",
"flapc",
- "foldhash 0.1.5",
+ "foldhash 0.2.0",
"getrandom",
"hashbrown 0.16.1",
"iced-x86",
@@ -1049,7 +1049,7 @@ dependencies = [
"ak",
"cbindgen",
"chardetng",
- "foldhash 0.1.5",
+ "foldhash 0.2.0",
"hashbrown 0.16.1",
"ladybird_allocator",
"libcompositing_rust",
diff --git a/Libraries/LibCompositing/Rust/Cargo.toml b/Libraries/LibCompositing/Rust/Cargo.toml
index 744f6f7dc34..6ded91c18ad 100644
--- a/Libraries/LibCompositing/Rust/Cargo.toml
+++ b/Libraries/LibCompositing/Rust/Cargo.toml
@@ -11,7 +11,7 @@ default = []
allocator = ["dep:ladybird_allocator"]
[dependencies]
-foldhash = "0.1"
+foldhash = "0.2"
ladybird_allocator = { path = "../../RustAllocator", optional = true }
libgfx_rust = { path = "../../LibGfx/Rust", default-features = false }
rustc-demangle = "0.1"
diff --git a/Libraries/LibCompositing/Rust/src/fast_hash.rs b/Libraries/LibCompositing/Rust/src/fast_hash.rs
index 2c4aa295fe4..d9154d25b22 100644
--- a/Libraries/LibCompositing/Rust/src/fast_hash.rs
+++ b/Libraries/LibCompositing/Rust/src/fast_hash.rs
@@ -11,7 +11,7 @@ use std::collections::HashSet;
use std::hash::BuildHasher;
use foldhash::fast::FixedState;
-pub use foldhash::fast::FoldHasher as FastHasher;
+pub type FastHasher = foldhash::fast::FoldHasher<'static>;
pub fn fast_hasher() -> FastHasher {
FixedState::default().build_hasher()
diff --git a/Libraries/LibGfx/Rust/Cargo.toml b/Libraries/LibGfx/Rust/Cargo.toml
index 2e1f42951bf..7a016be0f83 100644
--- a/Libraries/LibGfx/Rust/Cargo.toml
+++ b/Libraries/LibGfx/Rust/Cargo.toml
@@ -11,7 +11,7 @@ default = []
allocator = ["dep:ladybird_allocator"]
[dependencies]
-foldhash = "0.1"
+foldhash = "0.2"
ladybird_allocator = { path = "../../RustAllocator", optional = true }
rustc-demangle = "0.1"
yuv = "0.8.17"
diff --git a/Libraries/LibJS/Rust/Cargo.toml b/Libraries/LibJS/Rust/Cargo.toml
index ada30174bff..2be783b4416 100644
--- a/Libraries/LibJS/Rust/Cargo.toml
+++ b/Libraries/LibJS/Rust/Cargo.toml
@@ -18,7 +18,7 @@ thread-sanitizer = []
# python3 Meta/CMake/flatpak/generate-cargo-sources.py
[dependencies]
ak = { path = "../../../AK/Rust" }
-foldhash = "0.1"
+foldhash = "0.2"
getrandom = "0.4"
hashbrown = { version = "0.16.1", default-features = false }
indexmap = "2"
diff --git a/Libraries/LibWeb/Rust/Cargo.toml b/Libraries/LibWeb/Rust/Cargo.toml
index 97c3bc5d573..30e4ef8cfe9 100644
--- a/Libraries/LibWeb/Rust/Cargo.toml
+++ b/Libraries/LibWeb/Rust/Cargo.toml
@@ -15,7 +15,7 @@ thread-sanitizer = []
[dependencies]
ak = { path = "../../../AK/Rust" }
chardetng = "1.0.0"
-foldhash = "0.1"
+foldhash = "0.2"
hashbrown = "0.16.1"
ladybird_allocator = { path = "../../RustAllocator", optional = true }
libcompositing_rust = { path = "../../LibCompositing/Rust" }