Cargo Features
[dependencies]
bevy_window = { version = "0.16.0-rc.2", default-features = false, features = ["bevy_reflect", "serialize", "std", "libm"] }
- default = bevy_reflect, std
-
These default features are set whenever
bevy_window
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_app, bevy_ecs, and bevy_input
bevy_app:
bevy
- serialize = serde
-
Adds serialization support through
serde
.Enables serde of smol_str ^0.2, serialize of bevy_ecs and bevy_input
- 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_platform_support, optional bevy_reflect, raw-window-handle, and optional serde
serde:
other
- libm
-
Uses the
libm
maths library instead of the one provided instd
andcore
.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.