Rename bevy_platform_support to bevy_platform (#18813)

The goal of `bevy_platform_support` is to provide a set of platform
agnostic APIs, alongside platform-specific functionality. This is a high
traffic crate (providing things like HashMap and Instant). Especially in
light of https://github.com/bevyengine/bevy/discussions/18799, it
deserves a friendlier / shorter name.

Given that it hasn't had a full release yet, getting this change in
before Bevy 0.16 makes sense.

- Rename `bevy_platform_support` to `bevy_platform`.
This commit is contained in:
Carter Anderson 2025-04-11 16:13:28 -07:00 committed by François Mockers
parent 71a9142ded
commit 9666a7e688
247 changed files with 396 additions and 406 deletions

View File

@ -24,7 +24,7 @@ bevy_reflect = { path = "../crates/bevy_reflect", features = ["functions"] }
bevy_render = { path = "../crates/bevy_render" } bevy_render = { path = "../crates/bevy_render" }
bevy_tasks = { path = "../crates/bevy_tasks" } bevy_tasks = { path = "../crates/bevy_tasks" }
bevy_utils = { path = "../crates/bevy_utils" } bevy_utils = { path = "../crates/bevy_utils" }
bevy_platform_support = { path = "../crates/bevy_platform_support", default-features = false, features = [ bevy_platform = { path = "../crates/bevy_platform", default-features = false, features = [
"std", "std",
] } ] }

View File

@ -1,7 +1,7 @@
use core::{fmt::Write, hint::black_box, iter, time::Duration}; use core::{fmt::Write, hint::black_box, iter, time::Duration};
use benches::bench; use benches::bench;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_reflect::{DynamicMap, Map}; use bevy_reflect::{DynamicMap, Map};
use criterion::{ use criterion::{
criterion_group, measurement::Measurement, AxisScale, BatchSize, BenchmarkGroup, BenchmarkId, criterion_group, measurement::Measurement, AxisScale, BatchSize, BenchmarkGroup, BenchmarkId,

View File

@ -25,7 +25,7 @@ bevy_time = { path = "../bevy_time", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-rc.4" } bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-rc.4" }
bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" } bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
"serialize", "serialize",
] } ] }
@ -53,7 +53,7 @@ bevy_log = { path = "../bevy_log", version = "0.16.0-rc.4", default-features = f
bevy_app = { path = "../bevy_app", version = "0.16.0-rc.4", default-features = false, features = [ bevy_app = { path = "../bevy_app", version = "0.16.0-rc.4", default-features = false, features = [
"web", "web",
] } ] }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"web", "web",
] } ] }
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", default-features = false, features = [ bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", default-features = false, features = [

View File

@ -101,7 +101,7 @@ use bevy_math::curve::{
Curve, Interval, Curve, Interval,
}; };
use bevy_mesh::morph::MorphWeights; use bevy_mesh::morph::MorphWeights;
use bevy_platform_support::hash::Hashed; use bevy_platform::hash::Hashed;
use bevy_reflect::{FromReflect, Reflect, Reflectable, TypeInfo, Typed}; use bevy_reflect::{FromReflect, Reflect, Reflectable, TypeInfo, Typed};
use downcast_rs::{impl_downcast, Downcast}; use downcast_rs::{impl_downcast, Downcast};

View File

@ -17,7 +17,7 @@ use bevy_ecs::{
resource::Resource, resource::Resource,
system::{Res, ResMut}, system::{Res, ResMut},
}; };
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_reflect::{prelude::ReflectDefault, Reflect, ReflectSerialize}; use bevy_reflect::{prelude::ReflectDefault, Reflect, ReflectSerialize};
use derive_more::derive::From; use derive_more::derive::From;
use petgraph::{ use petgraph::{

View File

@ -35,7 +35,7 @@ use bevy_app::{Animation, App, Plugin, PostUpdate};
use bevy_asset::{Asset, AssetApp, AssetEvents, Assets}; use bevy_asset::{Asset, AssetApp, AssetEvents, Assets};
use bevy_ecs::{prelude::*, world::EntityMutExcept}; use bevy_ecs::{prelude::*, world::EntityMutExcept};
use bevy_math::FloatOrd; use bevy_math::FloatOrd;
use bevy_platform_support::{collections::HashMap, hash::NoOpHash}; use bevy_platform::{collections::HashMap, hash::NoOpHash};
use bevy_reflect::{prelude::ReflectDefault, Reflect, TypePath}; use bevy_reflect::{prelude::ReflectDefault, Reflect, TypePath};
use bevy_time::Time; use bevy_time::Time;
use bevy_transform::TransformSystem; use bevy_transform::TransformSystem;
@ -758,10 +758,10 @@ impl AnimationCurveEvaluators {
.component_property_curve_evaluators .component_property_curve_evaluators
.get_or_insert_with(component_property, func), .get_or_insert_with(component_property, func),
EvaluatorId::Type(type_id) => match self.type_id_curve_evaluators.entry(type_id) { EvaluatorId::Type(type_id) => match self.type_id_curve_evaluators.entry(type_id) {
bevy_platform_support::collections::hash_map::Entry::Occupied(occupied_entry) => { bevy_platform::collections::hash_map::Entry::Occupied(occupied_entry) => {
&mut **occupied_entry.into_mut() &mut **occupied_entry.into_mut()
} }
bevy_platform_support::collections::hash_map::Entry::Vacant(vacant_entry) => { bevy_platform::collections::hash_map::Entry::Vacant(vacant_entry) => {
&mut **vacant_entry.insert(func()) &mut **vacant_entry.insert(func())
} }
}, },

View File

@ -49,7 +49,7 @@ std = [
"downcast-rs/std", "downcast-rs/std",
"bevy_utils/std", "bevy_utils/std",
"bevy_tasks/std", "bevy_tasks/std",
"bevy_platform_support/std", "bevy_platform/std",
] ]
## `critical-section` provides the building blocks for synchronization primitives ## `critical-section` provides the building blocks for synchronization primitives
@ -57,14 +57,14 @@ std = [
critical-section = [ critical-section = [
"bevy_tasks/critical-section", "bevy_tasks/critical-section",
"bevy_ecs/critical-section", "bevy_ecs/critical-section",
"bevy_platform_support/critical-section", "bevy_platform/critical-section",
"bevy_reflect?/critical-section", "bevy_reflect?/critical-section",
] ]
## Enables use of browser APIs. ## Enables use of browser APIs.
## Note this is currently only applicable on `wasm32` architectures. ## Note this is currently only applicable on `wasm32` architectures.
web = [ web = [
"bevy_platform_support/web", "bevy_platform/web",
"bevy_tasks/web", "bevy_tasks/web",
"bevy_reflect?/web", "bevy_reflect?/web",
"dep:wasm-bindgen", "dep:wasm-bindgen",
@ -81,7 +81,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4", default-features
"alloc", "alloc",
] } ] }
bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4", default-features = false } bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4", default-features = false }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false } bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false }
# other # other
downcast-rs = { version = "2", default-features = false } downcast-rs = { version = "2", default-features = false }

View File

@ -16,7 +16,7 @@ use bevy_ecs::{
schedule::{InternedSystemSet, ScheduleBuildSettings, ScheduleLabel}, schedule::{InternedSystemSet, ScheduleBuildSettings, ScheduleLabel},
system::{IntoObserverSystem, ScheduleSystem, SystemId, SystemInput}, system::{IntoObserverSystem, ScheduleSystem, SystemId, SystemInput},
}; };
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::{fmt::Debug, num::NonZero, panic::AssertUnwindSafe}; use core::{fmt::Debug, num::NonZero, panic::AssertUnwindSafe};
use log::debug; use log::debug;

View File

@ -4,7 +4,7 @@ use alloc::{
string::{String, ToString}, string::{String, ToString},
vec::Vec, vec::Vec,
}; };
use bevy_platform_support::collections::hash_map::Entry; use bevy_platform::collections::hash_map::Entry;
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use core::any::TypeId; use core::any::TypeId;
use log::{debug, warn}; use log::{debug, warn};

View File

@ -3,7 +3,7 @@ use crate::{
plugin::Plugin, plugin::Plugin,
PluginsState, PluginsState,
}; };
use bevy_platform_support::time::Instant; use bevy_platform::time::Instant;
use core::time::Duration; use core::time::Duration;
#[cfg(all(target_arch = "wasm32", feature = "web"))] #[cfg(all(target_arch = "wasm32", feature = "web"))]
@ -160,7 +160,7 @@ impl Plugin for ScheduleRunnerPlugin {
loop { loop {
match tick(&mut app, wait) { match tick(&mut app, wait) {
Ok(Some(delay)) => { Ok(Some(delay)) => {
bevy_platform_support::thread::sleep(delay); bevy_platform::thread::sleep(delay);
} }
Ok(None) => continue, Ok(None) => continue,
Err(exit) => return exit, Err(exit) => return exit,

View File

@ -6,7 +6,7 @@ use bevy_ecs::{
schedule::{InternedScheduleLabel, InternedSystemSet, ScheduleBuildSettings, ScheduleLabel}, schedule::{InternedScheduleLabel, InternedSystemSet, ScheduleBuildSettings, ScheduleLabel},
system::{ScheduleSystem, SystemId, SystemInput}, system::{ScheduleSystem, SystemId, SystemInput},
}; };
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use core::fmt::Debug; use core::fmt::Debug;
#[cfg(feature = "trace")] #[cfg(feature = "trace")]

View File

@ -1,7 +1,7 @@
use crate::{App, Plugin}; use crate::{App, Plugin};
use alloc::string::ToString; use alloc::string::ToString;
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use bevy_tasks::{AsyncComputeTaskPool, ComputeTaskPool, IoTaskPool, TaskPoolBuilder}; use bevy_tasks::{AsyncComputeTaskPool, ComputeTaskPool, IoTaskPool, TaskPoolBuilder};
use core::{fmt::Debug, marker::PhantomData}; use core::{fmt::Debug, marker::PhantomData};
use log::trace; use log::trace;

View File

@ -27,7 +27,7 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", features = [
] } ] }
bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4" } bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
] } ] }

View File

@ -13,7 +13,7 @@ use bevy_ecs::{
storage::{Table, TableRow}, storage::{Table, TableRow},
world::unsafe_world_cell::UnsafeWorldCell, world::unsafe_world_cell::UnsafeWorldCell,
}; };
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::marker::PhantomData; use core::marker::PhantomData;
use disqualified::ShortName; use disqualified::ShortName;
use tracing::error; use tracing::error;

View File

@ -6,7 +6,7 @@ use bevy_ecs::{
resource::Resource, resource::Resource,
system::{Res, ResMut, SystemChangeTick}, system::{Res, ResMut, SystemChangeTick},
}; };
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_reflect::{Reflect, TypePath}; use bevy_reflect::{Reflect, TypePath};
use core::{any::TypeId, iter::Enumerate, marker::PhantomData, sync::atomic::AtomicU32}; use core::{any::TypeId, iter::Enumerate, marker::PhantomData, sync::atomic::AtomicU32};
use crossbeam_channel::{Receiver, Sender}; use crossbeam_channel::{Receiver, Sender};
@ -600,7 +600,7 @@ impl<A: Asset> Assets<A> {
pub struct AssetsMutIterator<'a, A: Asset> { pub struct AssetsMutIterator<'a, A: Asset> {
queued_events: &'a mut Vec<AssetEvent<A>>, queued_events: &'a mut Vec<AssetEvent<A>>,
dense_storage: Enumerate<core::slice::IterMut<'a, Entry<A>>>, dense_storage: Enumerate<core::slice::IterMut<'a, Entry<A>>>,
hash_map: bevy_platform_support::collections::hash_map::IterMut<'a, Uuid, A>, hash_map: bevy_platform::collections::hash_map::IterMut<'a, Uuid, A>,
} }
impl<'a, A: Asset> Iterator for AssetsMutIterator<'a, A> { impl<'a, A: Asset> Iterator for AssetsMutIterator<'a, A> {

View File

@ -551,7 +551,7 @@ pub enum UntypedAssetConversionError {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use alloc::boxed::Box; use alloc::boxed::Box;
use bevy_platform_support::hash::FixedHasher; use bevy_platform::hash::FixedHasher;
use bevy_reflect::PartialReflect; use bevy_reflect::PartialReflect;
use core::hash::BuildHasher; use core::hash::BuildHasher;

View File

@ -441,7 +441,7 @@ mod tests {
fn hash<T: Hash>(data: &T) -> u64 { fn hash<T: Hash>(data: &T) -> u64 {
use core::hash::BuildHasher; use core::hash::BuildHasher;
bevy_platform_support::hash::FixedHasher.hash_one(data) bevy_platform::hash::FixedHasher.hash_one(data)
} }
/// Typed and Untyped `AssetIds` should be equivalent to each other and themselves /// Typed and Untyped `AssetIds` should be equivalent to each other and themselves

View File

@ -4,7 +4,7 @@ use crate::io::{
AssetSourceEvent, AssetWatcher, AssetSourceEvent, AssetWatcher,
}; };
use alloc::{boxed::Box, sync::Arc, vec::Vec}; use alloc::{boxed::Box, sync::Arc, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::time::Duration; use core::time::Duration;
use notify_debouncer_full::{notify::RecommendedWatcher, Debouncer, RecommendedCache}; use notify_debouncer_full::{notify::RecommendedWatcher, Debouncer, RecommendedCache};
use parking_lot::RwLock; use parking_lot::RwLock;

View File

@ -29,7 +29,7 @@ pub struct EmbeddedAssetRegistry {
dir: Dir, dir: Dir,
#[cfg(feature = "embedded_watcher")] #[cfg(feature = "embedded_watcher")]
root_paths: alloc::sync::Arc< root_paths: alloc::sync::Arc<
parking_lot::RwLock<bevy_platform_support::collections::HashMap<Box<Path>, PathBuf>>, parking_lot::RwLock<bevy_platform::collections::HashMap<Box<Path>, PathBuf>>,
>, >,
} }

View File

@ -1,6 +1,6 @@
use crate::io::{AssetReader, AssetReaderError, PathStream, Reader}; use crate::io::{AssetReader, AssetReaderError, PathStream, Reader};
use alloc::{boxed::Box, sync::Arc}; use alloc::{boxed::Box, sync::Arc};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use crossbeam_channel::{Receiver, Sender}; use crossbeam_channel::{Receiver, Sender};
use parking_lot::RwLock; use parking_lot::RwLock;
use std::path::Path; use std::path::Path;

View File

@ -1,6 +1,6 @@
use crate::io::{AssetReader, AssetReaderError, PathStream, Reader}; use crate::io::{AssetReader, AssetReaderError, PathStream, Reader};
use alloc::{borrow::ToOwned, boxed::Box, sync::Arc, vec::Vec}; use alloc::{borrow::ToOwned, boxed::Box, sync::Arc, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::{pin::Pin, task::Poll}; use core::{pin::Pin, task::Poll};
use futures_io::AsyncRead; use futures_io::AsyncRead;
use futures_lite::{ready, Stream}; use futures_lite::{ready, Stream};

View File

@ -9,7 +9,7 @@ use alloc::{
}; };
use atomicow::CowArc; use atomicow::CowArc;
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::{fmt::Display, hash::Hash, time::Duration}; use core::{fmt::Display, hash::Hash, time::Duration};
use thiserror::Error; use thiserror::Error;
use tracing::{error, warn}; use tracing::{error, warn};

View File

@ -223,7 +223,7 @@ use bevy_ecs::{
schedule::{IntoScheduleConfigs, SystemSet}, schedule::{IntoScheduleConfigs, SystemSet},
world::FromWorld, world::FromWorld,
}; };
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_reflect::{FromReflect, GetTypeRegistration, Reflect, TypePath}; use bevy_reflect::{FromReflect, GetTypeRegistration, Reflect, TypePath};
use core::any::TypeId; use core::any::TypeId;
use tracing::error; use tracing::error;
@ -686,7 +686,7 @@ mod tests {
prelude::*, prelude::*,
schedule::{LogLevel, ScheduleBuildSettings}, schedule::{LogLevel, ScheduleBuildSettings},
}; };
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_reflect::TypePath; use bevy_reflect::TypePath;
use core::time::Duration; use core::time::Duration;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -13,7 +13,7 @@ use alloc::{
}; };
use atomicow::CowArc; use atomicow::CowArc;
use bevy_ecs::world::World; use bevy_ecs::world::World;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_tasks::{BoxedFuture, ConditionalSendFuture}; use bevy_tasks::{BoxedFuture, ConditionalSendFuture};
use core::any::{Any, TypeId}; use core::any::{Any, TypeId};
use downcast_rs::{impl_downcast, Downcast}; use downcast_rs::{impl_downcast, Downcast};

View File

@ -5,7 +5,7 @@ use alloc::{
vec::Vec, vec::Vec,
}; };
use async_fs::File; use async_fs::File;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use futures_lite::{AsyncReadExt, AsyncWriteExt}; use futures_lite::{AsyncReadExt, AsyncWriteExt};
use std::path::PathBuf; use std::path::PathBuf;
use thiserror::Error; use thiserror::Error;

View File

@ -58,7 +58,7 @@ use crate::{
}; };
use alloc::{borrow::ToOwned, boxed::Box, collections::VecDeque, sync::Arc, vec, vec::Vec}; use alloc::{borrow::ToOwned, boxed::Box, collections::VecDeque, sync::Arc, vec, vec::Vec};
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_tasks::IoTaskPool; use bevy_tasks::IoTaskPool;
use futures_io::ErrorKind; use futures_io::ErrorKind;
use futures_lite::{AsyncReadExt, AsyncWriteExt, StreamExt}; use futures_lite::{AsyncReadExt, AsyncWriteExt, StreamExt};

View File

@ -4,7 +4,7 @@ use crate::{
}; };
use alloc::boxed::Box; use alloc::boxed::Box;
use atomicow::CowArc; use atomicow::CowArc;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_tasks::{BoxedFuture, ConditionalSendFuture}; use bevy_tasks::{BoxedFuture, ConditionalSendFuture};
use core::{borrow::Borrow, hash::Hash, ops::Deref}; use core::{borrow::Borrow, hash::Hash, ops::Deref};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -11,7 +11,7 @@ use alloc::{
vec::Vec, vec::Vec,
}; };
use bevy_ecs::world::World; use bevy_ecs::world::World;
use bevy_platform_support::collections::{hash_map::Entry, HashMap, HashSet}; use bevy_platform::collections::{hash_map::Entry, HashMap, HashSet};
use bevy_tasks::Task; use bevy_tasks::Task;
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use core::{any::TypeId, task::Waker}; use core::{any::TypeId, task::Waker};

View File

@ -4,7 +4,7 @@ use crate::{
}; };
use alloc::{boxed::Box, sync::Arc, vec::Vec}; use alloc::{boxed::Box, sync::Arc, vec::Vec};
use async_broadcast::RecvError; use async_broadcast::RecvError;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_tasks::IoTaskPool; use bevy_tasks::IoTaskPool;
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use core::any::TypeId; use core::any::TypeId;

View File

@ -26,7 +26,7 @@ use alloc::{
}; };
use atomicow::CowArc; use atomicow::CowArc;
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_tasks::IoTaskPool; use bevy_tasks::IoTaskPool;
use core::{any::TypeId, future::Future, panic::AssertUnwindSafe, task::Poll}; use core::{any::TypeId, future::Future, panic::AssertUnwindSafe, task::Poll};
use crossbeam_channel::{Receiver, Sender}; use crossbeam_channel::{Receiver, Sender};

View File

@ -1,7 +1,7 @@
use crate::{meta::Settings, Asset, ErasedLoadedAsset, Handle, LabeledAsset, UntypedHandle}; use crate::{meta::Settings, Asset, ErasedLoadedAsset, Handle, LabeledAsset, UntypedHandle};
use alloc::boxed::Box; use alloc::boxed::Box;
use atomicow::CowArc; use atomicow::CowArc;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_tasks::ConditionalSendFuture; use bevy_tasks::ConditionalSendFuture;
use core::{ use core::{
borrow::Borrow, borrow::Borrow,

View File

@ -35,7 +35,7 @@ bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" }
bevy_math = { path = "../bevy_math", version = "0.16.0-rc.4" } bevy_math = { path = "../bevy_math", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_window = { path = "../bevy_window", version = "0.16.0-rc.4" } bevy_window = { path = "../bevy_window", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
"serialize", "serialize",
] } ] }

View File

@ -1,5 +1,5 @@
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_platform_support::collections::{hash_map::Entry, HashMap}; use bevy_platform::collections::{hash_map::Entry, HashMap};
use bevy_render::{ use bevy_render::{
render_resource::{StorageBuffer, UniformBuffer}, render_resource::{StorageBuffer, UniformBuffer},
renderer::{RenderDevice, RenderQueue}, renderer::{RenderDevice, RenderQueue},

View File

@ -34,7 +34,7 @@ pub mod graph {
use core::ops::Range; use core::ops::Range;
use bevy_asset::UntypedAssetId; use bevy_asset::UntypedAssetId;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_render::{ use bevy_render::{
batching::gpu_preprocessing::GpuPreprocessingMode, batching::gpu_preprocessing::GpuPreprocessingMode,
render_phase::PhaseItemBatchSetKey, render_phase::PhaseItemBatchSetKey,

View File

@ -87,7 +87,7 @@ use bevy_color::LinearRgba;
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_image::BevyDefault; use bevy_image::BevyDefault;
use bevy_math::FloatOrd; use bevy_math::FloatOrd;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_render::{ use bevy_render::{
camera::{Camera, ExtractedCamera}, camera::{Camera, ExtractedCamera},
extract_component::ExtractComponentPlugin, extract_component::ExtractComponentPlugin,

View File

@ -4,8 +4,8 @@ use bevy_app::prelude::*;
use bevy_asset::{load_internal_asset, weak_handle, Handle}; use bevy_asset::{load_internal_asset, weak_handle, Handle};
use bevy_ecs::{component::*, prelude::*}; use bevy_ecs::{component::*, prelude::*};
use bevy_math::UVec2; use bevy_math::UVec2;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_platform_support::time::Instant; use bevy_platform::time::Instant;
use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_reflect::{std_traits::ReflectDefault, Reflect};
use bevy_render::{ use bevy_render::{
camera::{Camera, ExtractedCamera}, camera::{Camera, ExtractedCamera},

View File

@ -1,7 +1,7 @@
use crate::blit::{BlitPipeline, BlitPipelineKey}; use crate::blit::{BlitPipeline, BlitPipelineKey};
use bevy_app::prelude::*; use bevy_app::prelude::*;
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_render::{ use bevy_render::{
camera::{CameraOutputMode, ExtractedCamera}, camera::{CameraOutputMode, ExtractedCamera},
render_resource::*, render_resource::*,

View File

@ -19,7 +19,7 @@ serialize = [
"bevy_ecs/serialize", "bevy_ecs/serialize",
"bevy_time/serialize", "bevy_time/serialize",
"bevy_utils/serde", "bevy_utils/serde",
"bevy_platform_support/serialize", "bevy_platform/serialize",
] ]
## Disables diagnostics that are unsupported when Bevy is dynamically linked ## Disables diagnostics that are unsupported when Bevy is dynamically linked
@ -37,7 +37,7 @@ std = [
"serde?/std", "serde?/std",
"bevy_ecs/std", "bevy_ecs/std",
"bevy_app/std", "bevy_app/std",
"bevy_platform_support/std", "bevy_platform/std",
"bevy_time/std", "bevy_time/std",
"bevy_utils/std", "bevy_utils/std",
"bevy_tasks/std", "bevy_tasks/std",
@ -48,7 +48,7 @@ std = [
critical-section = [ critical-section = [
"bevy_ecs/critical-section", "bevy_ecs/critical-section",
"bevy_app/critical-section", "bevy_app/critical-section",
"bevy_platform_support/critical-section", "bevy_platform/critical-section",
"bevy_time/critical-section", "bevy_time/critical-section",
"bevy_utils/critical-section", "bevy_utils/critical-section",
"bevy_tasks/critical-section", "bevy_tasks/critical-section",
@ -63,7 +63,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4", default-features
"alloc", "alloc",
] } ] }
bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4", default-features = false } bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4", default-features = false }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"alloc", "alloc",
] } ] }

View File

@ -7,7 +7,7 @@ use core::{
use bevy_app::{App, SubApp}; use bevy_app::{App, SubApp};
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_ecs::system::{Deferred, Res, SystemBuffer, SystemParam}; use bevy_ecs::system::{Deferred, Res, SystemBuffer, SystemParam};
use bevy_platform_support::{collections::HashMap, hash::PassHash, time::Instant}; use bevy_platform::{collections::HashMap, hash::PassHash, time::Instant};
use const_fnv1a_hash::fnv1a_hash_str_64; use const_fnv1a_hash::fnv1a_hash_str_64;
use crate::DEFAULT_MAX_HISTORY_LENGTH; use crate::DEFAULT_MAX_HISTORY_LENGTH;

View File

@ -74,7 +74,7 @@ pub mod internal {
use bevy_app::{App, First, Startup, Update}; use bevy_app::{App, First, Startup, Update};
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_ecs::{prelude::ResMut, system::Local}; use bevy_ecs::{prelude::ResMut, system::Local};
use bevy_platform_support::time::Instant; use bevy_platform::time::Instant;
use bevy_tasks::{available_parallelism, block_on, poll_once, AsyncComputeTaskPool, Task}; use bevy_tasks::{available_parallelism, block_on, poll_once, AsyncComputeTaskPool, Task};
use log::info; use log::info;
use std::sync::Mutex; use std::sync::Mutex;

View File

@ -23,7 +23,7 @@ multi_threaded = ["bevy_tasks/multi_threaded", "dep:arrayvec"]
serialize = [ serialize = [
"dep:serde", "dep:serde",
"bevy_utils/serde", "bevy_utils/serde",
"bevy_platform_support/serialize", "bevy_platform/serialize",
"indexmap/serde", "indexmap/serde",
] ]
@ -84,14 +84,14 @@ std = [
"nonmax/std", "nonmax/std",
"arrayvec?/std", "arrayvec?/std",
"log/std", "log/std",
"bevy_platform_support/std", "bevy_platform/std",
] ]
## `critical-section` provides the building blocks for synchronization primitives ## `critical-section` provides the building blocks for synchronization primitives
## on all platforms, including `no_std`. ## on all platforms, including `no_std`.
critical-section = [ critical-section = [
"bevy_tasks/critical-section", "bevy_tasks/critical-section",
"bevy_platform_support/critical-section", "bevy_platform/critical-section",
"bevy_reflect?/critical-section", "bevy_reflect?/critical-section",
] ]
@ -105,7 +105,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4", default-features
"alloc", "alloc",
] } ] }
bevy_ecs_macros = { path = "macros", version = "0.16.0-rc.4" } bevy_ecs_macros = { path = "macros", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"alloc", "alloc",
] } ] }

View File

@ -27,7 +27,7 @@ use crate::{
storage::{ImmutableSparseSet, SparseArray, SparseSet, SparseSetIndex, TableId, TableRow}, storage::{ImmutableSparseSet, SparseArray, SparseSet, SparseSetIndex, TableId, TableRow},
}; };
use alloc::{boxed::Box, vec::Vec}; use alloc::{boxed::Box, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::{ use core::{
hash::Hash, hash::Hash,
ops::{Index, IndexMut, RangeFrom}, ops::{Index, IndexMut, RangeFrom},

View File

@ -23,7 +23,7 @@ use crate::{
world::{unsafe_world_cell::UnsafeWorldCell, EntityWorldMut, ON_ADD, ON_INSERT, ON_REPLACE}, world::{unsafe_world_cell::UnsafeWorldCell, EntityWorldMut, ON_ADD, ON_INSERT, ON_REPLACE},
}; };
use alloc::{boxed::Box, vec, vec::Vec}; use alloc::{boxed::Box, vec, vec::Vec};
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_ptr::{ConstNonNull, OwningPtr}; use bevy_ptr::{ConstNonNull, OwningPtr};
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use core::{any::TypeId, ptr::NonNull}; use core::{any::TypeId, ptr::NonNull};

View File

@ -15,8 +15,8 @@ use crate::{
use alloc::boxed::Box; use alloc::boxed::Box;
use alloc::{borrow::Cow, format, vec::Vec}; use alloc::{borrow::Cow, format, vec::Vec};
pub use bevy_ecs_macros::Component; pub use bevy_ecs_macros::Component;
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use bevy_platform_support::{ use bevy_platform::{
collections::{HashMap, HashSet}, collections::{HashMap, HashSet},
sync::PoisonError, sync::PoisonError,
}; };
@ -675,7 +675,7 @@ pub struct HookContext {
/// ///
/// ``` /// ```
/// use bevy_ecs::prelude::*; /// use bevy_ecs::prelude::*;
/// use bevy_platform_support::collections::HashSet; /// use bevy_platform::collections::HashSet;
/// ///
/// #[derive(Component)] /// #[derive(Component)]
/// struct MyTrackedComponent; /// struct MyTrackedComponent;
@ -1305,7 +1305,7 @@ impl Debug for QueuedComponents {
/// Generates [`ComponentId`]s. /// Generates [`ComponentId`]s.
#[derive(Debug, Default)] #[derive(Debug, Default)]
pub struct ComponentIds { pub struct ComponentIds {
next: bevy_platform_support::sync::atomic::AtomicUsize, next: bevy_platform::sync::atomic::AtomicUsize,
} }
impl ComponentIds { impl ComponentIds {
@ -1313,7 +1313,7 @@ impl ComponentIds {
pub fn peek(&self) -> ComponentId { pub fn peek(&self) -> ComponentId {
ComponentId( ComponentId(
self.next self.next
.load(bevy_platform_support::sync::atomic::Ordering::Relaxed), .load(bevy_platform::sync::atomic::Ordering::Relaxed),
) )
} }
@ -1321,7 +1321,7 @@ impl ComponentIds {
pub fn next(&self) -> ComponentId { pub fn next(&self) -> ComponentId {
ComponentId( ComponentId(
self.next self.next
.fetch_add(1, bevy_platform_support::sync::atomic::Ordering::Relaxed), .fetch_add(1, bevy_platform::sync::atomic::Ordering::Relaxed),
) )
} }
@ -1959,7 +1959,7 @@ pub struct Components {
indices: TypeIdMap<ComponentId>, indices: TypeIdMap<ComponentId>,
resource_indices: TypeIdMap<ComponentId>, resource_indices: TypeIdMap<ComponentId>,
// This is kept internal and local to verify that no deadlocks can occor. // This is kept internal and local to verify that no deadlocks can occor.
queued: bevy_platform_support::sync::RwLock<QueuedComponents>, queued: bevy_platform::sync::RwLock<QueuedComponents>,
} }
impl Components { impl Components {
@ -2840,7 +2840,7 @@ impl RequiredComponents {
) { ) {
let entry = self.0.entry(component_id); let entry = self.0.entry(component_id);
match entry { match entry {
bevy_platform_support::collections::hash_map::Entry::Occupied(mut occupied) => { bevy_platform::collections::hash_map::Entry::Occupied(mut occupied) => {
let current = occupied.get_mut(); let current = occupied.get_mut();
if current.inheritance_depth > inheritance_depth { if current.inheritance_depth > inheritance_depth {
*current = RequiredComponent { *current = RequiredComponent {
@ -2849,7 +2849,7 @@ impl RequiredComponents {
} }
} }
} }
bevy_platform_support::collections::hash_map::Entry::Vacant(vacant) => { bevy_platform::collections::hash_map::Entry::Vacant(vacant) => {
vacant.insert(RequiredComponent { vacant.insert(RequiredComponent {
constructor: constructor(), constructor: constructor(),
inheritance_depth, inheritance_depth,

View File

@ -1,5 +1,5 @@
use alloc::{borrow::ToOwned, boxed::Box, collections::VecDeque, vec::Vec}; use alloc::{borrow::ToOwned, boxed::Box, collections::VecDeque, vec::Vec};
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_ptr::{Ptr, PtrMut}; use bevy_ptr::{Ptr, PtrMut};
use bumpalo::Bump; use bumpalo::Bump;
use core::any::TypeId; use core::any::TypeId;

View File

@ -3,7 +3,7 @@ use alloc::{
collections::{btree_map, btree_set}, collections::{btree_map, btree_set},
rc::Rc, rc::Rc,
}; };
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use core::{ use core::{
array, array,
@ -15,7 +15,7 @@ use core::{
use super::{Entity, UniqueEntityEquivalentSlice}; use super::{Entity, UniqueEntityEquivalentSlice};
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
/// A trait for types that contain an [`Entity`]. /// A trait for types that contain an [`Entity`].
/// ///

View File

@ -25,7 +25,7 @@ impl BuildHasher for EntityHash {
/// ///
/// If you have an unusual case -- say all your indices are multiples of 256 /// If you have an unusual case -- say all your indices are multiples of 256
/// or most of the entities are dead generations -- then you might want also to /// or most of the entities are dead generations -- then you might want also to
/// try [`DefaultHasher`](bevy_platform_support::hash::DefaultHasher) for a slower hash /// try [`DefaultHasher`](bevy_platform::hash::DefaultHasher) for a slower hash
/// computation but fewer lookup conflicts. /// computation but fewer lookup conflicts.
#[derive(Debug, Default)] #[derive(Debug, Default)]
pub struct EntityHasher { pub struct EntityHasher {

View File

@ -9,7 +9,7 @@ use core::{
ops::{Deref, DerefMut, Index}, ops::{Deref, DerefMut, Index},
}; };
use bevy_platform_support::collections::hash_map::{self, HashMap}; use bevy_platform::collections::hash_map::{self, HashMap};
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]
use bevy_reflect::Reflect; use bevy_reflect::Reflect;

View File

@ -12,7 +12,7 @@ use core::{
}, },
}; };
use bevy_platform_support::collections::hash_set::{self, HashSet}; use bevy_platform::collections::hash_set::{self, HashSet};
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]
use bevy_reflect::Reflect; use bevy_reflect::Reflect;

View File

@ -21,7 +21,7 @@ use indexmap::map::{self, IndexMap, IntoValues, ValuesMut};
use super::{Entity, EntityEquivalent, EntityHash, EntitySetIterator}; use super::{Entity, EntityEquivalent, EntityHash, EntitySetIterator};
use bevy_platform_support::prelude::Box; use bevy_platform::prelude::Box;
/// A [`IndexMap`] pre-configured to use [`EntityHash`] hashing. /// A [`IndexMap`] pre-configured to use [`EntityHash`] hashing.
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))] #[cfg_attr(feature = "bevy_reflect", derive(Reflect))]

View File

@ -20,7 +20,7 @@ use indexmap::set::{self, IndexSet};
use super::{Entity, EntityHash, EntitySetIterator}; use super::{Entity, EntityHash, EntitySetIterator};
use bevy_platform_support::prelude::Box; use bevy_platform::prelude::Box;
/// An [`IndexSet`] pre-configured to use [`EntityHash`] hashing. /// An [`IndexSet`] pre-configured to use [`EntityHash`] hashing.
#[cfg_attr(feature = "serialize", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serialize", derive(serde::Deserialize, serde::Serialize))]

View File

@ -7,7 +7,7 @@ use crate::{
}; };
use alloc::{collections::VecDeque, vec::Vec}; use alloc::{collections::VecDeque, vec::Vec};
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use core::hash::BuildHasher; use core::hash::BuildHasher;
use smallvec::SmallVec; use smallvec::SmallVec;
@ -24,7 +24,7 @@ use smallvec::SmallVec;
/// entities in the context of scenes and entity cloning, which generally uses [`MapEntities`] internally /// entities in the context of scenes and entity cloning, which generally uses [`MapEntities`] internally
/// to map each field (see those docs for usage). /// to map each field (see those docs for usage).
/// ///
/// [`HashSet<Entity>`]: bevy_platform_support::collections::HashSet /// [`HashSet<Entity>`]: bevy_platform::collections::HashSet
/// ///
/// ## Example /// ## Example
/// ///

View File

@ -83,7 +83,7 @@ use crate::{
storage::{SparseSetIndex, TableId, TableRow}, storage::{SparseSetIndex, TableId, TableRow},
}; };
use alloc::vec::Vec; use alloc::vec::Vec;
use bevy_platform_support::sync::atomic::Ordering; use bevy_platform::sync::atomic::Ordering;
use core::{fmt, hash::Hash, mem, num::NonZero, panic::Location}; use core::{fmt, hash::Hash, mem, num::NonZero, panic::Location};
use log::warn; use log::warn;
@ -91,7 +91,7 @@ use log::warn;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[cfg(target_has_atomic = "64")] #[cfg(target_has_atomic = "64")]
use bevy_platform_support::sync::atomic::AtomicI64 as AtomicIdCursor; use bevy_platform::sync::atomic::AtomicI64 as AtomicIdCursor;
#[cfg(target_has_atomic = "64")] #[cfg(target_has_atomic = "64")]
type IdCursor = i64; type IdCursor = i64;
@ -99,7 +99,7 @@ type IdCursor = i64;
/// do not. This fallback allows compilation using a 32-bit cursor instead, with /// do not. This fallback allows compilation using a 32-bit cursor instead, with
/// the caveat that some conversions may fail (and panic) at runtime. /// the caveat that some conversions may fail (and panic) at runtime.
#[cfg(not(target_has_atomic = "64"))] #[cfg(not(target_has_atomic = "64"))]
use bevy_platform_support::sync::atomic::AtomicIsize as AtomicIdCursor; use bevy_platform::sync::atomic::AtomicIsize as AtomicIdCursor;
#[cfg(not(target_has_atomic = "64"))] #[cfg(not(target_has_atomic = "64"))]
type IdCursor = isize; type IdCursor = isize;

View File

@ -18,7 +18,7 @@ use alloc::{
vec::Vec, vec::Vec,
}; };
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use super::{ use super::{
unique_slice::{self, UniqueEntityEquivalentSlice}, unique_slice::{self, UniqueEntityEquivalentSlice},

View File

@ -22,7 +22,7 @@ use alloc::{
vec::Vec, vec::Vec,
}; };
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use super::{ use super::{
unique_vec::{self, UniqueEntityEquivalentVec}, unique_vec::{self, UniqueEntityEquivalentVec},

View File

@ -17,7 +17,7 @@ use alloc::{
vec::{self, Vec}, vec::{self, Vec},
}; };
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use super::{ use super::{
unique_slice::{self, UniqueEntityEquivalentSlice}, unique_slice::{self, UniqueEntityEquivalentSlice},

View File

@ -1,5 +1,5 @@
#[cfg(feature = "configurable_error_handler")] #[cfg(feature = "configurable_error_handler")]
use bevy_platform_support::sync::OnceLock; use bevy_platform::sync::OnceLock;
use core::fmt::Display; use core::fmt::Display;
use crate::{component::Tick, error::BevyError}; use crate::{component::Tick, error::BevyError};

View File

@ -5,7 +5,7 @@
//! and make comparisons for any type as fast as integers. //! and make comparisons for any type as fast as integers.
use alloc::{borrow::ToOwned, boxed::Box}; use alloc::{borrow::ToOwned, boxed::Box};
use bevy_platform_support::{ use bevy_platform::{
collections::HashSet, collections::HashSet,
hash::FixedHasher, hash::FixedHasher,
sync::{PoisonError, RwLock}, sync::{PoisonError, RwLock},
@ -170,7 +170,7 @@ impl<T: ?Sized> Default for Interner<T> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use alloc::{boxed::Box, string::ToString}; use alloc::{boxed::Box, string::ToString};
use bevy_platform_support::hash::FixedHasher; use bevy_platform::hash::FixedHasher;
use core::hash::{BuildHasher, Hash, Hasher}; use core::hash::{BuildHasher, Hash, Hasher};
use crate::intern::{Internable, Interned, Interner}; use crate::intern::{Internable, Interned, Interner};

View File

@ -146,7 +146,7 @@ mod tests {
vec, vec,
vec::Vec, vec::Vec,
}; };
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_tasks::{ComputeTaskPool, TaskPool}; use bevy_tasks::{ComputeTaskPool, TaskPool};
use core::{ use core::{
any::TypeId, any::TypeId,

View File

@ -6,7 +6,7 @@ use alloc::{
borrow::{Cow, ToOwned}, borrow::{Cow, ToOwned},
string::String, string::String,
}; };
use bevy_platform_support::hash::FixedHasher; use bevy_platform::hash::FixedHasher;
use core::{ use core::{
hash::{BuildHasher, Hash, Hasher}, hash::{BuildHasher, Hash, Hasher},
ops::Deref, ops::Deref,

View File

@ -17,7 +17,7 @@ use crate::{
world::{DeferredWorld, *}, world::{DeferredWorld, *},
}; };
use alloc::vec::Vec; use alloc::vec::Vec;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_ptr::Ptr; use bevy_ptr::Ptr;
use core::{ use core::{
fmt::Debug, fmt::Debug,
@ -843,7 +843,7 @@ impl World {
mod tests { mod tests {
use alloc::{vec, vec::Vec}; use alloc::{vec, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_ptr::OwningPtr; use bevy_ptr::OwningPtr;
use crate::component::ComponentId; use crate::component::ComponentId;

View File

@ -205,7 +205,7 @@ impl<'w, 's, D: ReadOnlyQueryData, F: QueryFilter, E: EntityEquivalent + Sync>
/// use bevy_utils::Parallel; /// use bevy_utils::Parallel;
/// use crate::{bevy_ecs::prelude::{Component, Res, Resource, Entity}, bevy_ecs::system::Query}; /// use crate::{bevy_ecs::prelude::{Component, Res, Resource, Entity}, bevy_ecs::system::Query};
/// # use core::slice; /// # use core::slice;
/// use bevy_platform_support::prelude::Vec; /// use bevy_platform::prelude::Vec;
/// # fn some_expensive_operation(_item: &T) -> usize { /// # fn some_expensive_operation(_item: &T) -> usize {
/// # 0 /// # 0
/// # } /// # }

View File

@ -7,7 +7,7 @@ use crate::{
system::{Commands, EntityCommands}, system::{Commands, EntityCommands},
world::{EntityWorldMut, World}, world::{EntityWorldMut, World},
}; };
use bevy_platform_support::prelude::{Box, Vec}; use bevy_platform::prelude::{Box, Vec};
use core::{marker::PhantomData, mem}; use core::{marker::PhantomData, mem};
use super::OrderedRelationshipSourceCollection; use super::OrderedRelationshipSourceCollection;

View File

@ -1,6 +1,6 @@
use alloc::{boxed::Box, collections::BTreeSet, vec::Vec}; use alloc::{boxed::Box, collections::BTreeSet, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use crate::system::IntoSystem; use crate::system::IntoSystem;
use crate::world::World; use crate::world::World;

View File

@ -1,5 +1,5 @@
use alloc::{boxed::Box, vec::Vec}; use alloc::{boxed::Box, vec::Vec};
use bevy_platform_support::sync::Arc; use bevy_platform::sync::Arc;
use bevy_tasks::{ComputeTaskPool, Scope, TaskPool, ThreadExecutor}; use bevy_tasks::{ComputeTaskPool, Scope, TaskPool, ThreadExecutor};
use bevy_utils::{default, syncunsafecell::SyncUnsafeCell}; use bevy_utils::{default, syncunsafecell::SyncUnsafeCell};
use concurrent_queue::ConcurrentQueue; use concurrent_queue::ConcurrentQueue;

View File

@ -5,7 +5,7 @@
//! [`petgraph`]: https://docs.rs/petgraph/0.6.5/petgraph/ //! [`petgraph`]: https://docs.rs/petgraph/0.6.5/petgraph/
use alloc::vec::Vec; use alloc::vec::Vec;
use bevy_platform_support::{collections::HashSet, hash::FixedHasher}; use bevy_platform::{collections::HashSet, hash::FixedHasher};
use core::{ use core::{
fmt, fmt,
hash::{BuildHasher, Hash}, hash::{BuildHasher, Hash},

View File

@ -5,7 +5,7 @@ use core::{
}; };
use smallvec::SmallVec; use smallvec::SmallVec;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use fixedbitset::FixedBitSet; use fixedbitset::FixedBitSet;

View File

@ -11,7 +11,7 @@ use alloc::{
vec, vec,
vec::Vec, vec::Vec,
}; };
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_utils::{default, TypeIdMap}; use bevy_utils::{default, TypeIdMap};
use core::{ use core::{
any::{Any, TypeId}, any::{Any, TypeId},

View File

@ -4,7 +4,7 @@ use crate::{
system::{IntoSystem, ResMut}, system::{IntoSystem, ResMut},
}; };
use alloc::vec::Vec; use alloc::vec::Vec;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_utils::TypeIdMap; use bevy_utils::TypeIdMap;
use core::any::TypeId; use core::any::TypeId;
use fixedbitset::FixedBitSet; use fixedbitset::FixedBitSet;

View File

@ -6,7 +6,7 @@ use crate::{
storage::{blob_vec::BlobVec, ImmutableSparseSet, SparseSet}, storage::{blob_vec::BlobVec, ImmutableSparseSet, SparseSet},
}; };
use alloc::{boxed::Box, vec, vec::Vec}; use alloc::{boxed::Box, vec, vec::Vec};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_ptr::{OwningPtr, Ptr, UnsafeCellDeref}; use bevy_ptr::{OwningPtr, Ptr, UnsafeCellDeref};
pub use column::*; pub use column::*;
use core::{ use core::{

View File

@ -27,7 +27,7 @@ use crate::{
}, },
}; };
use alloc::vec::Vec; use alloc::vec::Vec;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_ptr::{OwningPtr, Ptr}; use bevy_ptr::{OwningPtr, Ptr};
use core::{ use core::{
any::TypeId, any::TypeId,
@ -250,7 +250,7 @@ impl<'w> EntityRef<'w> {
/// ## [`HashSet`] of [`ComponentId`]s /// ## [`HashSet`] of [`ComponentId`]s
/// ///
/// ``` /// ```
/// # use bevy_platform_support::collections::HashSet; /// # use bevy_platform::collections::HashSet;
/// # use bevy_ecs::{prelude::*, component::ComponentId}; /// # use bevy_ecs::{prelude::*, component::ComponentId};
/// # /// #
/// # #[derive(Component, PartialEq, Debug)] /// # #[derive(Component, PartialEq, Debug)]
@ -792,7 +792,7 @@ impl<'w> EntityMut<'w> {
/// ## [`HashSet`] of [`ComponentId`]s /// ## [`HashSet`] of [`ComponentId`]s
/// ///
/// ``` /// ```
/// # use bevy_platform_support::collections::HashSet; /// # use bevy_platform::collections::HashSet;
/// # use bevy_ecs::{prelude::*, component::ComponentId}; /// # use bevy_ecs::{prelude::*, component::ComponentId};
/// # /// #
/// # #[derive(Component, PartialEq, Debug)] /// # #[derive(Component, PartialEq, Debug)]

View File

@ -4,7 +4,7 @@ use crate::{
system::{ExclusiveSystemParam, ReadOnlySystemParam, SystemMeta, SystemParam}, system::{ExclusiveSystemParam, ReadOnlySystemParam, SystemMeta, SystemParam},
world::{FromWorld, World}, world::{FromWorld, World},
}; };
use bevy_platform_support::sync::atomic::{AtomicUsize, Ordering}; use bevy_platform::sync::atomic::{AtomicUsize, Ordering};
use super::unsafe_world_cell::UnsafeWorldCell; use super::unsafe_world_cell::UnsafeWorldCell;

View File

@ -67,7 +67,7 @@ use crate::{
}, },
}; };
use alloc::{boxed::Box, vec::Vec}; use alloc::{boxed::Box, vec::Vec};
use bevy_platform_support::sync::atomic::{AtomicU32, Ordering}; use bevy_platform::sync::atomic::{AtomicU32, Ordering};
use bevy_ptr::{OwningPtr, Ptr, UnsafeCellDeref}; use bevy_ptr::{OwningPtr, Ptr, UnsafeCellDeref};
use core::{any::TypeId, fmt}; use core::{any::TypeId, fmt};
use log::warn; use log::warn;
@ -3781,7 +3781,7 @@ mod tests {
vec::Vec, vec::Vec,
}; };
use bevy_ecs_macros::Component; use bevy_ecs_macros::Component;
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use core::{ use core::{
any::TypeId, any::TypeId,
panic, panic,

View File

@ -15,7 +15,7 @@ use crate::{
storage::{ComponentSparseSet, Storages, Table}, storage::{ComponentSparseSet, Storages, Table},
world::RawCommandQueue, world::RawCommandQueue,
}; };
use bevy_platform_support::sync::atomic::Ordering; use bevy_platform::sync::atomic::Ordering;
use bevy_ptr::{Ptr, UnsafeCellDeref}; use bevy_ptr::{Ptr, UnsafeCellDeref};
use core::{any::TypeId, cell::UnsafeCell, fmt::Debug, marker::PhantomData, panic::Location, ptr}; use core::{any::TypeId, cell::UnsafeCell, fmt::Debug, marker::PhantomData, panic::Location, ptr};
use thiserror::Error; use thiserror::Error;

View File

@ -15,7 +15,7 @@ bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-rc.4" }
bevy_input = { path = "../bevy_input", version = "0.16.0-rc.4" } bevy_input = { path = "../bevy_input", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_time = { path = "../bevy_time", version = "0.16.0-rc.4" } bevy_time = { path = "../bevy_time", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
] } ] }

View File

@ -24,7 +24,7 @@ use bevy_app::{App, Plugin, PostUpdate, PreStartup, PreUpdate};
use bevy_ecs::entity::EntityHashMap; use bevy_ecs::entity::EntityHashMap;
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_input::InputSystem; use bevy_input::InputSystem;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use gilrs::GilrsBuilder; use gilrs::GilrsBuilder;
use gilrs_system::{gilrs_event_startup_system, gilrs_event_system}; use gilrs_system::{gilrs_event_startup_system, gilrs_event_system};
use rumble::{play_gilrs_rumble, RunningRumbleEffects}; use rumble::{play_gilrs_rumble, RunningRumbleEffects};

View File

@ -2,7 +2,7 @@
use crate::{Gilrs, GilrsGamepads}; use crate::{Gilrs, GilrsGamepads};
use bevy_ecs::prelude::{EventReader, Res, ResMut, Resource}; use bevy_ecs::prelude::{EventReader, Res, ResMut, Resource};
use bevy_input::gamepad::{GamepadRumbleIntensity, GamepadRumbleRequest}; use bevy_input::gamepad::{GamepadRumbleIntensity, GamepadRumbleRequest};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_time::{Real, Time}; use bevy_time::{Real, Time};
use bevy_utils::synccell::SyncCell; use bevy_utils::synccell::SyncCell;
use core::time::Duration; use core::time::Duration;

View File

@ -37,7 +37,7 @@ bevy_scene = { path = "../bevy_scene", version = "0.16.0-rc.4", features = [
bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" } bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" }
bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4" } bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
"serialize", "serialize",
] } ] }
@ -74,7 +74,7 @@ bevy_log = { path = "../bevy_log", version = "0.16.0-rc.4", default-features = f
bevy_app = { path = "../bevy_app", version = "0.16.0-rc.4", default-features = false, features = [ bevy_app = { path = "../bevy_app", version = "0.16.0-rc.4", default-features = false, features = [
"web", "web",
] } ] }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"web", "web",
] } ] }
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", default-features = false, features = [ bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", default-features = false, features = [

View File

@ -6,7 +6,7 @@ use bevy_asset::{Asset, Handle};
use bevy_ecs::{component::Component, reflect::ReflectComponent}; use bevy_ecs::{component::Component, reflect::ReflectComponent};
use bevy_mesh::{skinning::SkinnedMeshInverseBindposes, Mesh}; use bevy_mesh::{skinning::SkinnedMeshInverseBindposes, Mesh};
use bevy_pbr::StandardMaterial; use bevy_pbr::StandardMaterial;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_reflect::{prelude::ReflectDefault, Reflect, TypePath}; use bevy_reflect::{prelude::ReflectDefault, Reflect, TypePath};
use bevy_scene::Scene; use bevy_scene::Scene;

View File

@ -97,7 +97,7 @@ mod vertex_attributes;
extern crate alloc; extern crate alloc;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use bevy_app::prelude::*; use bevy_app::prelude::*;
use bevy_asset::AssetApp; use bevy_asset::AssetApp;

View File

@ -5,7 +5,7 @@ pub mod mesh;
pub mod scene; pub mod scene;
pub mod texture; pub mod texture;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use fixedbitset::FixedBitSet; use fixedbitset::FixedBitSet;
use gltf::{Document, Gltf}; use gltf::{Document, Gltf};

View File

@ -8,7 +8,7 @@ use fixedbitset::FixedBitSet;
use itertools::Itertools; use itertools::Itertools;
#[cfg(feature = "bevy_animation")] #[cfg(feature = "bevy_animation")]
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use crate::GltfError; use crate::GltfError;

View File

@ -35,7 +35,7 @@ use bevy_pbr::UvChannel;
use bevy_pbr::{ use bevy_pbr::{
DirectionalLight, MeshMaterial3d, PointLight, SpotLight, StandardMaterial, MAX_JOINTS, DirectionalLight, MeshMaterial3d, PointLight, SpotLight, StandardMaterial, MAX_JOINTS,
}; };
use bevy_platform_support::collections::{HashMap, HashSet}; use bevy_platform::collections::{HashMap, HashSet};
use bevy_render::{ use bevy_render::{
camera::{Camera, OrthographicProjection, PerspectiveProjection, Projection, ScalingMode}, camera::{Camera, OrthographicProjection, PerspectiveProjection, Projection, ScalingMode},
mesh::Mesh3d, mesh::Mesh3d,

View File

@ -1,5 +1,5 @@
use bevy_mesh::{Mesh, MeshVertexAttribute, VertexAttributeValues as Values, VertexFormat}; use bevy_mesh::{Mesh, MeshVertexAttribute, VertexAttributeValues as Values, VertexFormat};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use gltf::{ use gltf::{
accessor::{DataType, Dimensions}, accessor::{DataType, Dimensions},
mesh::util::{ReadColors, ReadJoints, ReadTexCoords, ReadWeights}, mesh::util::{ReadColors, ReadJoints, ReadTexCoords, ReadWeights},

View File

@ -32,11 +32,7 @@ qoi = ["image/qoi"]
tga = ["image/tga"] tga = ["image/tga"]
tiff = ["image/tiff"] tiff = ["image/tiff"]
webp = ["image/webp"] webp = ["image/webp"]
serialize = [ serialize = ["bevy_reflect", "bevy_platform/serialize", "bevy_utils/serde"]
"bevy_reflect",
"bevy_platform_support/serialize",
"bevy_utils/serde",
]
# For ktx2 supercompression # For ktx2 supercompression
zlib = ["flate2"] zlib = ["flate2"]
@ -53,7 +49,7 @@ bevy_color = { path = "../bevy_color", version = "0.16.0-rc.4", features = [
bevy_math = { path = "../bevy_math", version = "0.16.0-rc.4" } bevy_math = { path = "../bevy_math", version = "0.16.0-rc.4" }
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4" } bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
] } ] }

View File

@ -1,7 +1,7 @@
use bevy_app::prelude::*; use bevy_app::prelude::*;
use bevy_asset::{Asset, AssetApp as _, AssetId, Assets, Handle}; use bevy_asset::{Asset, AssetApp as _, AssetId, Assets, Handle};
use bevy_math::{Rect, URect, UVec2}; use bevy_math::{Rect, URect, UVec2};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
#[cfg(not(feature = "bevy_reflect"))] #[cfg(not(feature = "bevy_reflect"))]
use bevy_reflect::TypePath; use bevy_reflect::TypePath;
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]

View File

@ -1,6 +1,6 @@
use bevy_asset::{AssetId, RenderAssetUsages}; use bevy_asset::{AssetId, RenderAssetUsages};
use bevy_math::{URect, UVec2}; use bevy_math::{URect, UVec2};
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use rectangle_pack::{ use rectangle_pack::{
contains_smallest_box, pack_rects, volume_heuristic, GroupedRectsToPlace, PackedLocation, contains_smallest_box, pack_rects, volume_heuristic, GroupedRectsToPlace, PackedLocation,
RectToInsert, TargetBin, RectToInsert, TargetBin,

View File

@ -27,7 +27,7 @@ serialize = [
"smol_str?/serde", "smol_str?/serde",
"bevy_ecs/serialize", "bevy_ecs/serialize",
"bevy_math/serialize", "bevy_math/serialize",
"bevy_platform_support/serialize", "bevy_platform/serialize",
] ]
## Uses the small-string optimization provided by `smol_str`. ## Uses the small-string optimization provided by `smol_str`.
@ -44,7 +44,7 @@ std = [
"bevy_math/std", "bevy_math/std",
"bevy_utils/std", "bevy_utils/std",
"bevy_reflect/std", "bevy_reflect/std",
"bevy_platform_support/std", "bevy_platform/std",
] ]
## `critical-section` provides the building blocks for synchronization primitives ## `critical-section` provides the building blocks for synchronization primitives
@ -53,7 +53,7 @@ critical-section = [
"bevy_app/critical-section", "bevy_app/critical-section",
"bevy_ecs/critical-section", "bevy_ecs/critical-section",
"bevy_reflect?/critical-section", "bevy_reflect?/critical-section",
"bevy_platform_support/critical-section", "bevy_platform/critical-section",
] ]
## Uses the `libm` maths library instead of the one provided in `std` and `core`. ## Uses the `libm` maths library instead of the one provided in `std` and `core`.
@ -68,7 +68,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4", default-features
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", features = [ bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.4", features = [
"glam", "glam",
], default-features = false, optional = true } ], default-features = false, optional = true }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false } bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false }
# other # other
serde = { version = "1", features = [ serde = { version = "1", features = [

View File

@ -1,7 +1,7 @@
//! The generic axis type. //! The generic axis type.
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
use core::hash::Hash; use core::hash::Hash;
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]

View File

@ -1,7 +1,7 @@
//! The generic input type. //! The generic input type.
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use core::hash::Hash; use core::hash::Hash;
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]
use { use {

View File

@ -16,7 +16,7 @@ use bevy_ecs::{
}; };
use bevy_math::ops; use bevy_math::ops;
use bevy_math::Vec2; use bevy_math::Vec2;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]
use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_reflect::{std_traits::ReflectDefault, Reflect};
#[cfg(all(feature = "serialize", feature = "bevy_reflect"))] #[cfg(all(feature = "serialize", feature = "bevy_reflect"))]

View File

@ -7,7 +7,7 @@ use bevy_ecs::{
system::ResMut, system::ResMut,
}; };
use bevy_math::Vec2; use bevy_math::Vec2;
use bevy_platform_support::collections::HashMap; use bevy_platform::collections::HashMap;
#[cfg(feature = "bevy_reflect")] #[cfg(feature = "bevy_reflect")]
use bevy_reflect::Reflect; use bevy_reflect::Reflect;

View File

@ -113,7 +113,7 @@ serialize = [
"bevy_ui?/serialize", "bevy_ui?/serialize",
"bevy_window?/serialize", "bevy_window?/serialize",
"bevy_winit?/serialize", "bevy_winit?/serialize",
"bevy_platform_support/serialize", "bevy_platform/serialize",
] ]
multi_threaded = [ multi_threaded = [
"std", "std",
@ -306,7 +306,7 @@ std = [
"bevy_input_focus?/std", "bevy_input_focus?/std",
"bevy_log/std", "bevy_log/std",
"bevy_math/std", "bevy_math/std",
"bevy_platform_support/std", "bevy_platform/std",
"bevy_reflect/std", "bevy_reflect/std",
"bevy_state?/std", "bevy_state?/std",
"bevy_time/std", "bevy_time/std",
@ -325,7 +325,7 @@ critical-section = [
"bevy_ecs/critical-section", "bevy_ecs/critical-section",
"bevy_input/critical-section", "bevy_input/critical-section",
"bevy_input_focus?/critical-section", "bevy_input_focus?/critical-section",
"bevy_platform_support/critical-section", "bevy_platform/critical-section",
"bevy_reflect/critical-section", "bevy_reflect/critical-section",
"bevy_state?/critical-section", "bevy_state?/critical-section",
"bevy_time/critical-section", "bevy_time/critical-section",
@ -357,7 +357,7 @@ async_executor = [
web = [ web = [
"bevy_app/web", "bevy_app/web",
"bevy_log/web", "bevy_log/web",
"bevy_platform_support/web", "bevy_platform/web",
"bevy_reflect/web", "bevy_reflect/web",
"bevy_tasks/web", "bevy_tasks/web",
] ]
@ -379,7 +379,7 @@ bevy_math = { path = "../bevy_math", version = "0.16.0-rc.4", default-features =
"bevy_reflect", "bevy_reflect",
"nostd-libm", "nostd-libm",
] } ] }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"alloc", "alloc",
] } ] }
bevy_ptr = { path = "../bevy_ptr", version = "0.16.0-rc.4", default-features = false } bevy_ptr = { path = "../bevy_ptr", version = "0.16.0-rc.4", default-features = false }

View File

@ -48,7 +48,7 @@ pub use bevy_math as math;
pub use bevy_pbr as pbr; pub use bevy_pbr as pbr;
#[cfg(feature = "bevy_picking")] #[cfg(feature = "bevy_picking")]
pub use bevy_picking as picking; pub use bevy_picking as picking;
pub use bevy_platform_support as platform_support; pub use bevy_platform as platform;
pub use bevy_ptr as ptr; pub use bevy_ptr as ptr;
pub use bevy_reflect as reflect; pub use bevy_reflect as reflect;
#[cfg(feature = "bevy_remote")] #[cfg(feature = "bevy_remote")]

View File

@ -1,7 +1,7 @@
#[doc(hidden)] #[doc(hidden)]
pub use crate::{ pub use crate::{
app::prelude::*, ecs::prelude::*, input::prelude::*, log::prelude::*, math::prelude::*, app::prelude::*, ecs::prelude::*, input::prelude::*, log::prelude::*, math::prelude::*,
platform_support::prelude::*, reflect::prelude::*, time::prelude::*, transform::prelude::*, platform::prelude::*, reflect::prelude::*, time::prelude::*, transform::prelude::*,
utils::prelude::*, DefaultPlugins, MinimalPlugins, utils::prelude::*, DefaultPlugins, MinimalPlugins,
}; };

View File

@ -19,7 +19,7 @@ bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" }
bevy_mikktspace = { path = "../bevy_mikktspace", version = "0.16.0-rc.4" } bevy_mikktspace = { path = "../bevy_mikktspace", version = "0.16.0-rc.4" }
bevy_derive = { path = "../bevy_derive", version = "0.16.0-rc.4" } bevy_derive = { path = "../bevy_derive", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
"serialize", "serialize",
] } ] }

View File

@ -1176,7 +1176,7 @@ impl From<Capsule2d> for Mesh {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use bevy_math::{prelude::Annulus, primitives::RegularPolygon, FloatOrd}; use bevy_math::{prelude::Annulus, primitives::RegularPolygon, FloatOrd};
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use crate::{Mesh, MeshBuilder, Meshable, VertexAttributeValues}; use crate::{Mesh, MeshBuilder, Meshable, VertexAttributeValues};

View File

@ -2,7 +2,7 @@ use alloc::sync::Arc;
use bevy_derive::EnumVariantMeta; use bevy_derive::EnumVariantMeta;
use bevy_ecs::resource::Resource; use bevy_ecs::resource::Resource;
use bevy_math::Vec3; use bevy_math::Vec3;
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bytemuck::cast_slice; use bytemuck::cast_slice;
use core::hash::{Hash, Hasher}; use core::hash::{Hash, Hasher};
use thiserror::Error; use thiserror::Error;

View File

@ -46,7 +46,7 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.16.0-rc.4", optional = true
bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" } bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.4" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" } bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.4" }
bevy_window = { path = "../bevy_window", version = "0.16.0-rc.4" } bevy_window = { path = "../bevy_window", version = "0.16.0-rc.4" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.4", default-features = false, features = [ bevy_platform = { path = "../bevy_platform", version = "0.16.0-rc.4", default-features = false, features = [
"std", "std",
] } ] }

View File

@ -13,7 +13,7 @@ use bevy_ecs::{
world::{FromWorld, World}, world::{FromWorld, World},
}; };
use bevy_math::{uvec4, AspectRatio, UVec2, UVec3, UVec4, Vec3Swizzles as _, Vec4}; use bevy_math::{uvec4, AspectRatio, UVec2, UVec3, UVec4, Vec3Swizzles as _, Vec4};
use bevy_platform_support::collections::HashSet; use bevy_platform::collections::HashSet;
use bevy_reflect::{std_traits::ReflectDefault, Reflect}; use bevy_reflect::{std_traits::ReflectDefault, Reflect};
use bevy_render::{ use bevy_render::{
camera::Camera, camera::Camera,

Some files were not shown because too many files have changed in this diff Show More