Cargo Features
[dependencies]
egui-winit = { version = "0.29.1", default-features = false, features = ["accesskit", "android-game-activity", "android-native-activity", "bytemuck", "clipboard", "links", "puffin", "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 = accesskit_winit
-
Enable platform accessibility API implementations through 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.
- puffin
-
Enable profiling with the
puffin
crate. - 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.
- accesskit_winit accesskit?
-
Enables accesskit_winit ^0.22
Optional dependencies
feature accesskit
- 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