Skip to content

Commit 9f2eabb

Browse files
authored
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.
1 parent e169b2b commit 9f2eabb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/bevy_utils/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
100100
/// using the same Bevy version on the same device.
101101
///
102102
/// aHash is designed for performance and is NOT cryptographically secure.
103+
#[deprecated(
104+
note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashMap<K, V, FixedState>"
105+
)]
103106
pub type StableHashMap<K, V> = hashbrown::HashMap<K, V, FixedState>;
104107

105108
/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
@@ -119,6 +122,9 @@ pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;
119122
/// using the same Bevy version on the same device.
120123
///
121124
/// aHash is designed for performance and is NOT cryptographically secure.
125+
#[deprecated(
126+
note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashSet<K, FixedState>"
127+
)]
122128
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>;
123129

124130
/// A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.

0 commit comments

Comments
 (0)