mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
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:
parent
d67a7bad39
commit
e64c53972a
9 changed files with 11 additions and 6 deletions
|
@ -23,7 +23,6 @@ euclid = { workspace = true }
|
|||
fnv = { workspace = true }
|
||||
fonts = { path = "../../fonts" }
|
||||
fonts_traits = { workspace = true }
|
||||
fxhash = { workspace = true }
|
||||
html5ever = { workspace = true }
|
||||
ipc-channel = { workspace = true }
|
||||
libc = { workspace = true }
|
||||
|
@ -33,6 +32,7 @@ net_traits = { workspace = true }
|
|||
parking_lot = { workspace = true }
|
||||
pixels = { path = "../../pixels" }
|
||||
profile_traits = { workspace = true }
|
||||
rustc-hash = { workspace = true }
|
||||
range = { path = "../../range" }
|
||||
script_traits = { workspace = true }
|
||||
selectors = { workspace = true }
|
||||
|
|
|
@ -30,7 +30,6 @@ use euclid::Point2D;
|
|||
use euclid::default::{Point2D as UntypedPoint2D, Rect};
|
||||
use fnv::FnvHashMap;
|
||||
use fonts::{FontContext, SystemFontServiceProxy};
|
||||
use fxhash::FxHashMap;
|
||||
pub use layout_damage::LayoutDamage;
|
||||
use libc::c_void;
|
||||
use malloc_size_of::{MallocSizeOf as MallocSizeOfTrait, MallocSizeOfOps, malloc_size_of_is_0};
|
||||
|
@ -40,6 +39,7 @@ use parking_lot::RwLock;
|
|||
use pixels::RasterImage;
|
||||
use profile_traits::mem::Report;
|
||||
use profile_traits::time;
|
||||
use rustc_hash::FxHashMap;
|
||||
use script_traits::{InitialScriptState, Painter, ScriptThreadMessage};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use servo_arc::Arc as ServoArc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue