Cargo Features
[dependencies]
bevy_winit = { version = "0.16.0-rc.2", default-features = false, features = ["trace", "wayland", "x11", "accesskit_unix", "serialize", "android-native-activity", "android-game-activity", "custom_cursor"] }
- default = x11
-
The
x11
feature is set by default wheneverbevy_winit
is added without
somewhere in the dependency tree.default-features = false - trace
- wayland
-
Enables wayland and wayland-csd-adwaita of winit
other
feature rwh_06 refers to window_raw_handle@v0.6 - x11 default
- accesskit_unix
-
Enables accesskit_unix and async-io of accesskit_winit ^0.25
- serialize = serde
-
Enables serialize of bevy_input, bevy_platform_support, and bevy_window
bevy_input:
Adds serialization support through
serde
. - android-native-activity
-
Enables android-native-activity of winit
- android-game-activity
-
Enables android-game-activity of winit
- custom_cursor = bevy_asset, bevy_image, bytemuck, wgpu-types
-
Affects
state::CustomCursorCacheKey
,state::CustomCursorCache
…
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.
- bevy_asset custom_cursor?
-
Enables bevy_asset
bevy optional
- bevy_image custom_cursor?
- serde serialize?
- bytemuck custom_cursor?
- wgpu-types custom_cursor?