From 597c27617854e4075be7208fa0e50052a5c2f919 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Thu, 1 Sep 2022 10:26:21 +0800 Subject: [PATCH] Upgrade to ahash 0.8 --- Cargo.toml | 3 +-- README.md | 2 -- src/map.rs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7c1625ed5b..9931c83173 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.56.0" [dependencies] # For the default hasher -ahash = { version = "0.7.0", default-features = false, optional = true } +ahash = { version = "0.8.0", default-features = false, optional = true } # For external trait impls rayon = { version = "1.0", optional = true } @@ -39,7 +39,6 @@ doc-comment = "0.3.1" [features] default = ["ahash", "inline-more"] -ahash-compile-time-rng = ["ahash/compile-time-rng"] nightly = [] rustc-internal-api = [] rustc-dep-of-std = [ diff --git a/README.md b/README.md index 2eddcf3e29..461cf494ca 100644 --- a/README.md +++ b/README.md @@ -107,8 +107,6 @@ This crate has the following Cargo features: of compilation time. (enabled by default) - `bumpalo`: Provides a `BumpWrapper` type which allows `bumpalo` to be used for memory allocation. - `ahash`: Compiles with ahash as default hasher. (enabled by default) -- `ahash-compile-time-rng`: Activates the `compile-time-rng` feature of ahash. For targets with no random number generator -this pre-generates seeds at compile time and embeds them as constants. See [aHash's documentation](https://github.com/tkaitchuck/aHash#flags) (disabled by default) ## License diff --git a/src/map.rs b/src/map.rs index a5d3ccb97e..3ec640ba5e 100644 --- a/src/map.rs +++ b/src/map.rs @@ -10,7 +10,7 @@ use core::ops::Index; /// Default hasher for `HashMap`. #[cfg(feature = "ahash")] -pub type DefaultHashBuilder = ahash::RandomState; +pub type DefaultHashBuilder = core::hash::BuildHasherDefault; /// Dummy default hasher for `HashMap`. #[cfg(not(feature = "ahash"))]