Cargo Features
[dependencies]
bevy_state = { version = "0.17.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_stateis added withoutsomewhere 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_appplugin API.Enables bevy_app
Affects
bevy_state::app,bevy_state::state_scoped_events… - std default
-
Platform Compatibility
Allows access to the
stdcrate. Enabling this feature will prevent compilation onno_stdtargets, but provides access to certain additional features on supported platforms.Enables std of optional bevy_app, bevy_ecs, bevy_platform, and optional bevy_reflect
- critical-section
-
critical-sectionprovides the building blocks for synchronization primitives on all platforms, includingno_std.Enables critical-section of optional bevy_app, bevy_ecs, bevy_platform, and optional bevy_reflect