Skip to content

Commit

Permalink
Make ahash a workspace dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 5, 2024
1 parent 9d2d9b5 commit c14cb41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 1 addition & 4 deletions crates/egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions crates/epaint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit c14cb41

Please sign in to comment.