Cargo Features
[dependencies]
egui = { version = "0.33.3", default-features = false, features = ["accesskit", "bytemuck", "callstack", "cint", "color-hex", "default_fonts", "mint", "persistence", "rayon", "serde", "unity", "document-features"] }
- default = default_fonts
-
The
default_fontsfeature is set by default whenevereguiis added withoutsomewhere in the dependency tree.default-features = false - accesskit
-
Exposes detailed accessibility implementation required by platform accessibility APIs. Also requires support in the egui integration.
Enables accesskit ^0.21.1
### Optional dependencies
Affects
output::PlatformOutput.accesskit_update,egui::accesskit_root_id,pass_state::AccessKitPassState,pass_state::PassState.accesskit_state,text_selection::accesskit_text,ui_builder::UiBuilder.accessibility_parent… - bytemuck
-
bytemuckenables you to castepaint::Vertex,emath::Vec2etc to&[u8]. - callstack
-
Show a debug-ui on hover including the stacktrace to the hovered item.
This is very useful in finding the code that creates a part of the UI.
Does not work on web.Enables backtrace
- cint
-
cintenables interoperability with other color libraries. - color-hex
-
Enable the
hex_colormacro. - default_fonts default
-
If set, egui will use
include_bytes!to bundle some fonts. If you plan on specifying your own fonts you may disable this feature.Enables default_fonts of epaint
- mint
-
mintenables interoperability with other math libraries such asglamandnalgebra. - persistence = ron, serde
-
Enable persistence of memory (window positions etc).
Affects
id_type_map::SerializableAny… - rayon
-
Enable parallel tessellation using
rayon.This can help performance for graphics-intense applications.
- serde persistence?
-
Allow serialization using
serde.Enables serde, serde of epaint and optional accesskit ^0.21.1
- unity
-
Change Vertex layout to be compatible with unity
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.
- ron persistence?
-
Enables ron ^0.11.0