Skip to content

Commit c9f37ef

Browse files
Remove example causing circular dependency in bevy_platform_support (#18390)
# Objective - Alternative to #18389 ## Solution - Remove improper example. Co-authored-by: François Mockers <[email protected]>
1 parent 205ae64 commit c9f37ef

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

crates/bevy_platform_support/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ hashbrown = { version = "0.15.1", features = [
5858
"raw-entry",
5959
], optional = true, default-features = false }
6060

61-
[dev-dependencies]
62-
bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-dev" }
63-
6461
[target.'cfg(target_arch = "wasm32")'.dependencies]
6562
web-time = { version = "1.1", default-features = false, optional = true }
6663
getrandom = { version = "0.2.0", default-features = false, optional = true, features = [

crates/bevy_platform_support/src/collections.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,6 @@
55
//! Note that due to the implementation details of [`hashbrown`], [`HashMap::new`] is only implemented for `HashMap<K, V, RandomState>`.
66
//! Whereas, Bevy exports `HashMap<K, V, FixedHasher>` as its default [`HashMap`] type, meaning [`HashMap::new`] will typically fail.
77
//! To bypass this issue, use [`HashMap::default`] instead.
8-
//!
9-
//! ```
10-
//! # use bevy_ecs::component::Component;
11-
//! # use bevy_ecs::system::Commands;
12-
//! # use bevy_platform_support::collections::HashMap;
13-
//!
14-
//! #[derive(Component)]
15-
//! struct MyComponent {
16-
//! map: HashMap<String, String>
17-
//! }
18-
//!
19-
//! fn my_system(mut commands: Commands) {
20-
//! commands.spawn(MyComponent {
21-
//! map: HashMap::default(),
22-
//! });
23-
//! }
24-
//! ```
258
269
pub use hash_map::HashMap;
2710
pub use hash_set::HashSet;

0 commit comments

Comments
 (0)