Skip to content

Commit e3c59ea

Browse files
authored
bevy_platform_support -> bevy_platform (#2100)
1 parent c7fb9ee commit e3c59ea

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

content/learn/migration-guides/0.15-to-0.16.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ The most important changes to be aware of this release are:
1414

1515
- Bevy has reworked its error handling to make it easier to handle `Result`s everywhere. As a result, `Query::single` and friends now return results, rather than panicking.
1616
- Bevy's ECS now has built-in one-to-many entity relationships. The existing parent-child hierarchy system has been modified to use these relationships, causing minor breaking changes in entity despawning behavior and how children are added / replaced for a parent entity.
17-
- The `bevy` crate now supports `no_std` platforms. As part of this, many items (like `HashMap`) from `bevy_utils` have been moved into `bevy_platform_support`. If you are the author of an ecosystem crate, you may want to offer `no_std` support to your users as well: it's generally straightforward unless you're interfacing directly with the underlying operating system.
17+
- The `bevy` crate now supports `no_std` platforms. As part of this, many items (like `HashMap`) from `bevy_utils` have been moved into `bevy_platform`. If you are the author of an ecosystem crate, you may want to offer `no_std` support to your users as well: it's generally straightforward unless you're interfacing directly with the underlying operating system.
1818

1919
{{ migration_guides(version="0.16") }}

release-content/0.16/migration-guides/bevy_utils_decimation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Note that certain items have been completely removed, see below for further deta
1616
| ----------------------- | ------------ | ----------------------------- |
1717
| `AHasher` | `bevy_utils` | `ahash` |
1818
| `Duration` | `bevy_utils` | `core::time` |
19-
| `FixedState` | `bevy_utils` | `bevy_platform_support::hash` |
20-
| `Hashed` | `bevy_utils` | `bevy_platform_support::hash` |
21-
| `Instant` | `bevy_utils` | `bevy_platform_support::time` |
22-
| `NoOpHash` | `bevy_utils` | `bevy_platform_support::time` |
23-
| `PassHash` | `bevy_utils` | `bevy_platform_support::time` |
24-
| `PassHasher` | `bevy_utils` | `bevy_platform_support::time` |
25-
| `RandomState` | `bevy_utils` | `bevy_platform_support::time` |
19+
| `FixedState` | `bevy_utils` | `bevy_platform::hash` |
20+
| `Hashed` | `bevy_utils` | `bevy_platform::hash` |
21+
| `Instant` | `bevy_utils` | `bevy_platform::time` |
22+
| `NoOpHash` | `bevy_utils` | `bevy_platform::time` |
23+
| `PassHash` | `bevy_utils` | `bevy_platform::time` |
24+
| `PassHasher` | `bevy_utils` | `bevy_platform::time` |
25+
| `RandomState` | `bevy_utils` | `bevy_platform::time` |
2626
| `SystemTime` | `bevy_utils` | `std::time` |
2727
| `SystemTimeError` | `bevy_utils` | `std::time` |
2828
| `TryFromFloatSecsError` | `bevy_utils` | `core::time` |
@@ -68,9 +68,9 @@ now rely on `bevy_log` instead (or `tracing` itself, being sure to keep the vers
6868
| Item | 0.15 Path | 0.16 Path |
6969
| --------------- | ------------ | ---------------------------------------------- |
7070
| `BoxedFuture` | `bevy_utils` | `bevy_tasks` |
71-
| `Entry` | `bevy_utils` | `bevy_platform_support::collections::hash_map` |
72-
| `HashMap` | `bevy_utils` | `bevy_platform_support::collections` |
73-
| `HashSet` | `bevy_utils` | `bevy_platform_support::collections` |
71+
| `Entry` | `bevy_utils` | `bevy_platform::collections::hash_map` |
72+
| `HashMap` | `bevy_utils` | `bevy_platform::collections` |
73+
| `HashSet` | `bevy_utils` | `bevy_platform::collections` |
7474
| `StableHashMap` | `bevy_utils` | _Removed_ |
7575
| `StableHashSet` | `bevy_utils` | _Removed_ |
7676

@@ -87,7 +87,7 @@ now rely on `bevy_log` instead (or `tracing` itself, being sure to keep the vers
8787
```
8888

8989
- `hashbrown` was removed from `bevy_utils` as a re-export due to its significant API change from `hashbrown` 0.14 to 0.15.
90-
Instead of exposing a large public API out of our direct control, we've taken a more explicit subset and moved it into `bevy_platform_support::collections`, mimicking the layout of the standard library.
90+
Instead of exposing a large public API out of our direct control, we've taken a more explicit subset and moved it into `bevy_platform::collections`, mimicking the layout of the standard library.
9191
If you need access to `hashbrown`, take a direct dependency instead.
9292

9393
- `detailed_trace` was removed due to its minimal use within the engine.

release-content/0.16/release-notes/17955_Add_no_std_support_to_bevy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Coordinating that kind of support across over a hundred dependencies was just no
99

1010
Since then, Rust's support for `no_std` has evolved dramatically with support for critical APIs such as [`Error`] coming in [Rust 1.81].
1111
Starting with tracking issue [#15460] and a [`no_std` Working Group], Bevy's various crates were individually made `no_std` compatible where possible.
12-
To aid this effort, [`bevy_platform_support`] was developed with the goal of providing opinionated alternatives to `std` items.
12+
To aid this effort, [`bevy_platform`] was developed with the goal of providing opinionated alternatives to `std` items.
1313

1414
This effort reached a substantial milestone during the development of Bevy 0.16: support for `no_std` in our main `bevy` crate.
1515
To use Bevy on a `no_std` platform, simply disable default features and use Bevy just like any other `no_std` dependency.
@@ -39,7 +39,7 @@ If you have an unusual platform you'd like to try getting Bevy working on, check
3939
[`Error`]: https://doc.rust-lang.org/stable/core/error/trait.Error.html
4040
[#15460]: https://github.com/bevyengine/bevy/issues/15460
4141
[`no_std` Working Group]: https://discord.com/channels/691052431525675048/1303128171352293410
42-
[`bevy_platform_support`]: https://crates.io/crates/bevy_platform_support/
42+
[`bevy_platform`]: https://crates.io/crates/bevy_platform/
4343
[`#unusual-platforms`]: https://discord.com/channels/691052431525675048/1284885928837517432
4444
[discussed]: https://github.com/bevyengine/bevy/discussions/705
4545
[`Plugin`]: https://docs.rs/bevy/latest/bevy/app/trait.Plugin.html

0 commit comments

Comments
 (0)