Cargo Features
[dependencies]
egui-winit = { version = "0.30.0", default-features = false, features = ["accesskit", "android-game-activity", "android-native-activity", "bytemuck", "clipboard", "links", "serde", "wayland", "x11", "document-features", "wayland-cursor"] }
- default = clipboard, links, wayland, x11
-
These default features are set whenever
egui-winit
is added without
somewhere in the dependency tree.default-features = false Enables winit
- accesskit
-
Enable platform accessibility API implementations through AccessKit.
Enables accesskit of egui and accesskit_winit
Optional dependencies
feature accesskit
- android-game-activity
-
Allow crates to choose an android-activity backend via Winit
- It's important that most applications should not have to depend on android-activity directly, and can rely on Winit to pull in a suitable version (unlike most Rust crates, any version conflicts won't link)
- It's also important that we don't impose an android-activity backend by taking this choice away from applications.
Enable the
game-activity
backend via Winit on Android
Enables android-game-activity of winit
- android-native-activity
-
Enable the
native-activity
backend via Winit on AndroidEnables android-native-activity of winit
- bytemuck wayland x11
-
bytemuck
enables you to castegui::epaint::Vertex
,egui::Vec2
etc to&[u8]
. - clipboard default = arboard, smithay-clipboard
-
Enable cut/copy/paste to OS clipboard.
If disabled a clipboard will be simulated so you can still copy/paste within the egui app. - links default = webbrowser
-
Enable opening links in a browser when an egui hyperlink is clicked.
- serde
-
Allow serialization of
WindowSettings
usingserde
. - wayland default = bytemuck
-
Enables Wayland support.
- x11 default = bytemuck
-
Enables compiling for x11.
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.
- document-features implicit feature
-
Enables document-features
Enable this when generating docs.
- webbrowser links
- wayland-cursor linux dragonfly freebsd netbsd openbsd implicit feature
-
Enables wayland-cursor
wayland-cursor:
Bindings to libwayland-cursor
- arboard not android clipboard
- smithay-clipboard linux dragonfly freebsd netbsd openbsd clipboard