Skip to content

Commit 511abd1

Browse files
committed
Deprecating hashbrown reexports
1 parent 381f3d3 commit 511abd1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/bevy_utils/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl BuildHasher for FixedState {
8787
/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
8888
///
8989
/// aHash is designed for performance and is NOT cryptographically secure.
90+
#[deprecated(note = "Will be required to use the hash library of your choice.")]
9091
pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
9192

9293
/// A stable hash map implementing aHash, a high speed keyed hashing algorithm
@@ -96,12 +97,14 @@ pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
9697
/// of insertions and deletions and not a random source.
9798
///
9899
/// aHash is designed for performance and is NOT cryptographically secure.
100+
#[deprecated(note = "Will be required to use the hash library of your choice.")]
99101
pub type StableHashMap<K, V> = hashbrown::HashMap<K, V, FixedState>;
100102

101103
/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
102104
/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
103105
///
104106
/// aHash is designed for performance and is NOT cryptographically secure.
107+
#[deprecated(note = "Will be required to use the hash library of your choice.")]
105108
pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;
106109

107110
/// A stable hash set implementing aHash, a high speed keyed hashing algorithm
@@ -111,6 +114,7 @@ pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;
111114
/// of insertions and deletions and not a random source.
112115
///
113116
/// aHash is designed for performance and is NOT cryptographically secure.
117+
#[deprecated(note = "Will be required to use the hash library of your choice.")]
114118
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>;
115119

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

0 commit comments

Comments
 (0)