Cargo Features
[dependencies]
epaint = { version = "0.29.1", default-features = false, features = ["bytemuck", "cint", "color-hex", "deadlock_detection", "default_fonts", "log", "mint", "puffin", "rayon", "serde", "unity", "document-features"] }
- default = default_fonts
-
The
default_fonts
feature is set by default wheneverepaint
is added without
somewhere in the dependency tree.default-features = false - bytemuck
-
Enables bytemuck of ecolor and emath and bytemuck
### Optional dependencies
- cint
-
cint
enables interoperability with other color libraries. - color-hex
-
Enable the
hex_color
macro. - deadlock_detection
-
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
mutex::RwLock
(which epaint and egui uses a lot).Enables backtrace
- default_fonts default = epaint_default_fonts
-
If set, epaint will use
include_bytes!
to bundle some fonts. If you plan on specifying your own fonts you may disable this feature. - log
-
Turn on the
log
feature, that makes egui log some errors using thelog
crate.Enables log
- mint
-
mint
enables interoperability with other math libraries such asglam
andnalgebra
. - puffin
-
Enable profiling with the
puffin
crate.Only enabled on native, because of the low resolution (1ms) of clocks in browsers.
Enables puffin
- rayon
-
Enable parallel tessellation using
rayon
.This can help performance for graphics-intense applications.
Enables rayon
- serde
-
Allow serialization using
serde
.Enables serde of ahash, ecolor, and emath and serde
Allow serialization using
serde
. - unity
-
Change Vertex layout to be compatible with unity
Affects
mesh::Vertex
…
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.
- epaint_default_fonts default_fonts