Cargo Features

[dependencies]
egui_web = { version = "0.17.0", default-features = false, features = ["default_fonts", "glow", "webgl", "persistence", "screen_reader"] }
default = default_fonts, glow

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

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 egui ^0.17.0

glow default = egui_glow

Use glow as the renderer.

Enables epi of egui_glow ^0.17.0

webgl

Alternative to the glow renderer.

Affects egui_web::webgl1, egui_web::webgl2

persistence = ron, serde

enable persisting egui memory

Enables persistence of egui ^0.17.0

Affects egui_web::load_memory, egui_web::save_memory

screen_reader = tts

enable screen reader support (requires ctx.options().screen_reader = true;)

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_glow glow

Enables egui_glow ^0.17.0

ron persistence?

Enables ron ^0.7

Optional:

serde persistence?
tts screen_reader?

Enables tts ^0.20

feature screen_reader