Switch the majority of fxhash uses to rustc_hash which is maintained (#39168)

fxhash seems to be unmaintained (see
https://github.com/rustsec/advisory-db/issues/2185) so we should move
away from it.
Additionally, the new crate might be slightly faster.

There is still some cases depending on stylo that have the old fxhash
crate.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing: Changes in Hash should really not show any bugs. And
performance should be comparable.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger 2025-09-06 07:19:47 +02:00 committed by GitHub
parent d67a7bad39
commit e64c53972a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 6 deletions

View file

@ -126,6 +126,7 @@ resvg = "0.45.0"
rustls = { version = "0.23", default-features = false, features = ["logging", "std", "tls12"] }
rustls-pemfile = "2.0"
rustls-pki-types = "1.12"
rustc-hash = "2.1.1"
script_traits = { path = "components/shared/script" }
selectors = { git = "https://github.com/servo/stylo", branch = "2025-09-02" }
serde = "1.0.219"