Bug 1959469 - Fix ./mach uniffi generate, r=markh,glandium

The issue was that the `default-hasher` feature wasn't turned on, which
made it so the build hack that substitutes older hashbrown versions with
v0.15.2 was failing.

Differential Revision: https://phabricator.services.mozilla.com/D244942
This commit is contained in:
Ben Dean-Kawamura
2025-04-16 13:51:54 +00:00
parent 52c7a3a955
commit 1eb87d72f6
3 changed files with 6 additions and 4 deletions

1
Cargo.lock generated
View File

@@ -2524,7 +2524,6 @@ dependencies = [
name = "gkrust-uniffi-components"
version = "0.1.0"
dependencies = [
"hashbrown 0.15.2",
"relevancy",
"search",
"suggest",

View File

@@ -9,7 +9,12 @@ path = "lib.rs"
[features]
default = ["hashbrown/default"]
allocator-api2 = ["hashbrown/allocator-api2"]
ahash = [] # No direct equivalent in 0.15.*.
ahash = [
# No direct equivalent in 0.15.*. However, the `ahash` feature made it so `DefaultHashBuilder`
# was a real struct that implemented `BuildHasher`, `Default`, etc.
# Enable 0.15.* `default-hasher` feature, which does the same.
"hashbrown/default-hasher"
]
inline-more = ["hashbrown/inline-more"]
raw = ["hashbrown/raw-entry"]
serde = ["hashbrown/serde"]

View File

@@ -22,8 +22,6 @@ search = "0.1"
suggest = "0.1"
relevancy = "0.1"
webext-storage = "0.1"
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1959469
hashbrown = { version = "0.15.2", features = [ "default-hasher" ] }
[features]
# Should we depend on xpcom crates?