mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
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.
This commit is contained in:
parent
e169b2b217
commit
9f2eabb02f
1 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,9 @@ pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
|
||||||
/// using the same Bevy version on the same device.
|
/// using the same Bevy version on the same device.
|
||||||
///
|
///
|
||||||
/// aHash is designed for performance and is NOT cryptographically secure.
|
/// 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<K, V, FixedState>"
|
||||||
|
)]
|
||||||
pub type StableHashMap<K, V> = hashbrown::HashMap<K, V, FixedState>;
|
pub type StableHashMap<K, V> = hashbrown::HashMap<K, V, FixedState>;
|
||||||
|
|
||||||
/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
|
/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
|
||||||
|
@ -119,6 +122,9 @@ pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;
|
||||||
/// using the same Bevy version on the same device.
|
/// using the same Bevy version on the same device.
|
||||||
///
|
///
|
||||||
/// aHash is designed for performance and is NOT cryptographically secure.
|
/// 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<K, FixedState>"
|
||||||
|
)]
|
||||||
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>;
|
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>;
|
||||||
|
|
||||||
/// A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.
|
/// A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.
|
||||||
|
|
Loading…
Reference in a new issue