Cargo Features

bevy_winit has no features set by default.

[dependencies]
bevy_winit = { version = "0.15.0-rc.3", features = ["trace", "wayland", "x11", "accesskit_unix", "serialize", "android-native-activity", "android-game-activity", "custom_cursor"] }
trace
wayland

Enables wayland and wayland-csd-adwaita of winit

other
feature rwh_06 refers to window_raw_handle@v0.6

x11

Enables x11 of winit

accesskit_unix

Enables accesskit_unix and async-io of accesskit_winit ^0.22

serialize = serde

Enables serialize of bevy_input and bevy_window

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 cursor::CustomCursor, 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?