Cargo Features

[dependencies]
smithay-egui = { version = "0.2.0", default-features = false, features = ["default_fonts", "desktop_integration", "image", "svg", "png", "jpg", "lazy_static"] }
default = default_fonts, desktop_integration

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

default_fonts default

Let egui bundle some fonts by default.

Enables default_fonts of egui ^0.31

desktop_integration default

Enables desktop of smithay

image jpg? png? svg? = egui_extras, img
svg = image

Enables svg of egui_extras ^0.31

egui_extras:

Support loading svg images.

png = image

Enables image of egui_extras ^0.31, png of image

jpg = image

Enables jpeg of image and image of egui_extras ^0.31

egui_extras:

Add support for loading images with the image crate.

You also need to ALSO opt-in to the image formats you want to support, like so:

image = { version = "0.25", features = ["jpeg", "png"] } # Add the types you want support for

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.

egui_extras image? jpg? png? svg?

Enables egui_extras ^0.31

img image? jpg? png?

Enables image

lazy_static implicit feature

Enables lazy_static

lazy_static:

A macro for declaring lazily evaluated statics in Rust