Remove example causing circular dependency in bevy_platform_support (#18390)

# Objective

- Alternative to #18389

## Solution

- Remove improper example.

Co-authored-by: François Mockers <francois.mockers@vleue.com>
This commit is contained in:
Zachary Harrold 2025-03-18 19:58:52 +11:00 committed by GitHub
parent 205ae6441f
commit c9f37efeb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 20 deletions

View File

@ -58,9 +58,6 @@ hashbrown = { version = "0.15.1", features = [
"raw-entry",
], optional = true, default-features = false }
[dev-dependencies]
bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-dev" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-time = { version = "1.1", default-features = false, optional = true }
getrandom = { version = "0.2.0", default-features = false, optional = true, features = [

View File

@ -5,23 +5,6 @@
//! Note that due to the implementation details of [`hashbrown`], [`HashMap::new`] is only implemented for `HashMap<K, V, RandomState>`.
//! Whereas, Bevy exports `HashMap<K, V, FixedHasher>` as its default [`HashMap`] type, meaning [`HashMap::new`] will typically fail.
//! To bypass this issue, use [`HashMap::default`] instead.
//!
//! ```
//! # use bevy_ecs::component::Component;
//! # use bevy_ecs::system::Commands;
//! # use bevy_platform_support::collections::HashMap;
//!
//! #[derive(Component)]
//! struct MyComponent {
//! map: HashMap<String, String>
//! }
//!
//! fn my_system(mut commands: Commands) {
//! commands.spawn(MyComponent {
//! map: HashMap::default(),
//! });
//! }
//! ```
pub use hash_map::HashMap;
pub use hash_set::HashSet;