Cargo Features

[dependencies]
egui-winit = { version = "0.27.2", default-features = false, features = ["accesskit", "android-game-activity", "android-native-activity", "bytemuck", "clipboard", "links", "puffin", "serde", "wayland", "x11", "document-features"] }
default = clipboard, links, wayland, x11

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

Enables winit ^0.29.4

accesskit = accesskit_winit

Enable platform accessibility API implementations through AccessKit.

Enables accesskit of egui

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 ^0.29.4

android-native-activity

Enable the native-activity backend via Winit on Android

Enables android-native-activity of winit ^0.29.4

bytemuck wayland x11

bytemuck enables you to cast egui::epaint::Vertex, egui::Vec2 etc to &[u8].

Enables bytemuck of egui

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.

Enable opening links in a browser when an egui hyperlink is clicked.

puffin

Enable profiling with the puffin crate.

Enables puffin, puffin of egui

serde

Allow serialization of WindowSettings using serde.

Enables serde, serde of egui

wayland default = bytemuck

Enables Wayland support.

Enables wayland of winit ^0.29.4

x11 default = bytemuck

Enables compiling for x11.

Enables x11 of winit ^0.29.4

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.16.0

### Optional dependencies

feature accesskit

document-features implicit feature

Enables document-features

Enable this when generating docs.

webbrowser links

Enables webbrowser ^0.8.3

arboard not android clipboard
smithay-clipboard linux dragonfly freebsd netbsd openbsd clipboard