Cargo Features

[dependencies]
winit = { version = "0.29.10", default-features = false, features = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita", "wayland-csd-adwaita-crossfont", "wayland-csd-adwaita-notitle", "android-native-activity", "android-game-activity", "serde", "rwh_04", "rwh_05", "rwh_06", "mint"] }
default = rwh_06, wayland, wayland-csd-adwaita, wayland-dlopen, x11

These default features are set whenever winit is added without default-features = false somewhere in the dependency tree.

x11 default = bytemuck, percent-encoding, x11-dl, x11rb

Enables x11 of xkbcommon-dl

Affects xkb_state::KbdState.core_keyboard_id

wayland default = ahash, memmap2, sctk, wayland-backend, wayland-client, wayland-protocols, wayland-protocols-plasma
wayland-dlopen default

Enables dlopen of wayland-backend

wayland-csd-adwaita default = sctk-adwaita

Enables ab_glyph of sctk-adwaita

wayland-csd-adwaita-crossfont = sctk-adwaita

Enables crossfont of sctk-adwaita

wayland-csd-adwaita-notitle = sctk-adwaita
android-native-activity

Enables native-activity of android-activity

android-game-activity

Enables game-activity of android-activity

serde

Enables serde, serde of cursor-icon, serde of smol_str

rwh_04

Enables raw-window-handle ^0.4, rwh_04 of ndk

rwh_05

Enables raw-window-handle ^0.5.2, rwh_05 of ndk

rwh_06 default

Enables raw-window-handle, rwh_06 of ndk

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

mint implicit feature

Enables mint

mint:

Math interoperability standard types

ahash unix not redox wasm android ios mac wayland
bytemuck unix not redox wasm android ios mac x11
memmap2 unix not redox wasm android ios mac wayland
percent-encoding unix not redox wasm android ios mac x11
sctk unix not redox wasm android ios mac wayland

Enables smithay-client-toolkit

wayland-client unix not redox wasm android ios mac wayland
wayland-protocols unix not redox wasm android ios mac wayland
wayland-protocols-plasma unix not redox wasm android ios mac wayland
x11-dl unix not redox wasm android ios mac x11
x11rb unix not redox wasm android ios mac x11
wayland-backend unix not redox wasm android ios mac wayland wayland-dlopen
sctk-adwaita unix not redox wasm android ios mac wayland-csd-adwaita wayland-csd-adwaita-crossfont? wayland-csd-adwaita-notitle?

Affects state::WinitFrame