Cargo Features
[dependencies]
egui_gl_glfw = { version = "0.1.6", default-features = false, features = ["clipboard", "glfw-default", "glfw-all", "glfw-with-window-handle-v0-5", "glfw-wayland", "glfw-sys", "glfw-raw-window-handle-v0-5", "glfw-raw-window-handle-v0-6", "egui-bytemuck", "egui-callstack", "egui-cint", "egui-color-hex", "egui-deadlock_detection", "egui-default_fonts", "egui-log", "egui-mint", "egui-persistence", "egui-puffin", "egui-rayon", "egui-serde"] }
- default = clipboard, egui-default_fonts, glfw-raw-window-handle-v0-6, glfw-sys
-
These default features are set whenever
egui_gl_glfw
is added without
somewhere in the dependency tree.default-features = false - clipboard default
-
Enables cli-clipboard
- glfw-default
-
glfw features
Enables glfw
- glfw-all
- glfw-with-window-handle-v0-5
-
Enables with-window-handle-v0-5 of glfw
- glfw-wayland
- glfw-sys default
- glfw-raw-window-handle-v0-5
-
Enables raw-window-handle-v0-5 of glfw
- glfw-raw-window-handle-v0-6 default
-
Enables raw-window-handle-v0-6 of glfw
- egui-bytemuck
-
egui features
- egui-callstack
-
egui:
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. - egui-cint
-
egui:
cint
enables interoperability with other color libraries. - egui-color-hex
-
egui:
Enable the
hex_color
macro. - egui-deadlock_detection
-
Enables deadlock_detection of egui
egui:
This will automatically detect deadlocks due to double-locking on the same thread. If your app freezes, you may want to enable this! Only affects
epaint::mutex::RwLock
(which egui uses a lot). - egui-default_fonts default
-
Enables default_fonts of egui
egui:
If set, egui will use
include_bytes!
to bundle some fonts. If you plan on specifying your own fonts you may disable this feature. - egui-log
-
egui:
Turn on the
log
feature, that makes egui log some errors using thelog
crate. - egui-mint
-
egui:
mint
enables interoperability with other math libraries such asglam
andnalgebra
. - egui-persistence
-
Enables persistence of egui
egui:
Enable persistence of memory (window positions etc).
- egui-puffin
-
egui:
Enable profiling with the
puffin
crate.Only enabled on native, because of the low resolution (1ms) of clocks in browsers.
- egui-rayon
-
egui:
Enable parallel tessellation using
rayon
.This can help performance for graphics-intense applications.
- egui-serde
-
egui:
Allow serialization using
serde
.