Cargo Features
[dependencies]
bevy_state = { version = "0.16.0-rc.2", default-features = false, features = ["bevy_reflect", "bevy_app", "std", "critical-section"] }
- default = bevy_app, bevy_reflect, std
-
These default features are set whenever
bevy_state
is added without
somewhere in the dependency tree.default-features = false - bevy_reflect default
-
Functionality
Adds runtime reflection support using
bevy_reflect
.Enables bevy_reflect and bevy_reflect of bevy_ecs and optional bevy_app
bevy_ecs:
bevy
Affects
app::AppExtStates.register_type_state
,app::AppExtStates.register_type_mutable_state
,bevy_state::reflect
… - bevy_app default
-
Adds integration with the
bevy_app
plugin API.Enables bevy_app
Affects
bevy_state::app
,bevy_state::state_scoped_events
… - std default
-
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 std of optional bevy_app, bevy_ecs, bevy_platform_support, optional bevy_reflect, and bevy_utils
- critical-section
-
critical-section
provides the building blocks for synchronization primitives on all platforms, includingno_std
.Enables critical-section of optional bevy_app, bevy_ecs, bevy_platform_support, optional bevy_reflect, and bevy_utils