Cargo Features
[dependencies]
bevy_input_focus = { version = "0.16.0-rc.2", default-features = false, features = ["bevy_reflect", "serialize", "std", "critical-section", "libm"] }
- default = bevy_reflect, std
-
These default features are set whenever
bevy_input_focus
is added without
somewhere in the dependency tree.default-features = false Enables async_executor of bevy_ecs
bevy_ecs:
Executor Backend
Uses
async-executor
as a task execution backend. This backend is incompatible withno_std
targets. - bevy_reflect default std
-
Functionality
Adds runtime reflection support using
bevy_reflect
.Enables bevy_reflect, bevy_reflect of bevy_window and bevy_reflect of bevy_app, bevy_ecs, bevy_input, and bevy_math
bevy_app:
bevy
- serialize
-
Adds serialization support through
serde
.Enables serialize of bevy_ecs, bevy_input, bevy_math, and bevy_window
- 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 bevy_app, bevy_ecs, bevy_input, bevy_math, bevy_reflect, and bevy_window
- critical-section
-
critical-section
provides the building blocks for synchronization primitives on all platforms, includingno_std
.Enables critical-section of bevy_app, bevy_ecs, bevy_input, and optional bevy_reflect
- libm
-
Uses the
libm
maths library instead of the one provided instd
andcore
.Enables libm of bevy_math and bevy_window