Skip to content

Commit 5b4c936

Browse files
committed
Switch to rustc-hash instead of fxhash
See typst/typst#6678 (comment)
1 parent bb4b681 commit 5b4c936

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ keywords = ["incremental", "memoization", "tracked", "constraints"]
1414

1515
[workspace.dependencies]
1616
comemo-macros = { version = "0.4.0", path = "macros" }
17-
fxhash = "0.2"
1817
once_cell = "1.18"
1918
parking_lot = "0.12"
2019
proc-macro2 = "1"
2120
quote = "1"
21+
rustc-hash = "2.1"
2222
serial_test = "3"
2323
siphasher = "1"
2424
syn = { version = "2", features = ["full"] }
@@ -42,8 +42,8 @@ testing = []
4242

4343
[dependencies]
4444
comemo-macros = { workspace = true, optional = true }
45-
fxhash = { workspace = true }
4645
parking_lot = { workspace = true }
46+
rustc-hash = { workspace = true }
4747
siphasher = { workspace = true }
4848

4949
[dev-dependencies]

src/accelerate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::atomic::{AtomicUsize, Ordering};
22

3-
use fxhash::FxHashMap;
3+
use rustc_hash::FxHashMap;
44
use parking_lot::{MappedRwLockReadGuard, Mutex, RwLock, RwLockReadGuard};
55

66
/// The global list of currently alive accelerators.

src/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::sync::LazyLock;
22
use std::sync::atomic::{AtomicUsize, Ordering};
33

4-
use fxhash::FxHashMap;
54
use parking_lot::RwLock;
5+
use rustc_hash::FxHashMap;
66
use siphasher::sip128::{Hasher128, SipHasher13};
77

88
use crate::accelerate;

src/constraint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::borrow::Cow;
22
use std::collections::hash_map::Entry;
33
use std::hash::Hash;
44

5-
use fxhash::FxHashMap;
65
use parking_lot::RwLock;
6+
use rustc_hash::FxHashMap;
77

88
use crate::accelerate;
99

0 commit comments

Comments
 (0)