Cargo Features
[dependencies]
bevy_utils = { version = "0.16.0-rc.5", default-features = false, features = ["serde", "std", "alloc", "critical-section"] }
- default = serde, std
-
These default features are set whenever
bevy_utils
is added without
somewhere in the dependency tree.default-features = false - serde default
-
Functionality
Adds serialization support through
serde
.Enables serialize of bevy_platform
- std default = alloc
-
Platform Compatibility
Allows access to the
std
crate. Enabling this feature will prevent compilation onno_std
targets, but provides access to certain additional features on supported platforms.Enables thread_local, std of bevy_platform
- alloc std
-
Allows access to the
alloc
crate.Enables alloc of bevy_platform
Affects
bevy_utils::PreHashMap
,bevy_utils::PreHashMapExt
,bevy_utils::TypeIdMap
… - critical-section
-
critical-section
provides the building blocks for synchronization primitives on all platforms, includingno_std
.Enables critical-section of bevy_platform