diff --git a/Cargo.toml b/Cargo.toml index c88ff48edda..421972fc9ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,10 @@ opt-level = 2 [workspace.dependencies] +ahash = { version = "0.8.6", default-features = false, features = [ + "no-rng", # we don't need DOS-protection, so we let users opt-in to it instead + "std", +] } criterion = { version = "0.5.1", default-features = false } document-features = "0.2" glow = "0.13" diff --git a/crates/egui/Cargo.toml b/crates/egui/Cargo.toml index 3efe232ee61..aeb17f5b33a 100644 --- a/crates/egui/Cargo.toml +++ b/crates/egui/Cargo.toml @@ -83,10 +83,7 @@ unity = ["epaint/unity"] [dependencies] epaint = { version = "0.25.0", path = "../epaint", default-features = false } -ahash = { version = "0.8.6", default-features = false, features = [ - "no-rng", # we don't need DOS-protection, so we let users opt-in to it instead - "std", -] } +ahash.workspace = true nohash-hasher = "0.2" #! ### Optional dependencies diff --git a/crates/epaint/Cargo.toml b/crates/epaint/Cargo.toml index 2e5073e82d6..b671e1935cc 100644 --- a/crates/epaint/Cargo.toml +++ b/crates/epaint/Cargo.toml @@ -84,12 +84,9 @@ emath = { version = "0.25.0", path = "../emath" } ecolor = { version = "0.25.0", path = "../ecolor" } ab_glyph = "0.2.11" -ahash = { version = "0.8.1", default-features = false, features = [ - "no-rng", # we don't need DOS-protection, so we let users opt-in to it instead - "std", -] } +ahash.workspace = true nohash-hasher = "0.2" -parking_lot = "0.12" # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios. +parking_lot = "0.12" # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios. #! ### Optional dependencies bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }