From 9f2eabb02f726144dbe89644f667ee0a4da88708 Mon Sep 17 00:00:00 2001 From: andristarr Date: Tue, 6 Feb 2024 19:04:46 +0100 Subject: [PATCH] Deprecating hashbrown reexports (#11721) # Objective - The exported hashtypes are just re-exports from hashbrown, we want to drop that dependency and (in the future) let the user import their own choice. - Fixes #11717 ## Solution - Adding a deprecated tag on the re-exports, so in future releases these can be safely removed. --- crates/bevy_utils/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index 840b7ae80c316..c7381c25208ec 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -100,6 +100,9 @@ pub type HashMap = hashbrown::HashMap>; /// using the same Bevy version on the same device. /// /// aHash is designed for performance and is NOT cryptographically secure. +#[deprecated( + note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashMap" +)] pub type StableHashMap = hashbrown::HashMap; /// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high @@ -119,6 +122,9 @@ pub type HashSet = hashbrown::HashSet>; /// using the same Bevy version on the same device. /// /// aHash is designed for performance and is NOT cryptographically secure. +#[deprecated( + note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashSet" +)] pub type StableHashSet = hashbrown::HashSet; /// A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.