Skip to content
crates · rust · egui

egui components forerust

A Rust crate that extends egui and eframe with reusable generic states, widgets, and components for building KBVE desktop and WASM apps.

Built on egui + eframe

Generic application state, widgets, and components layered on the immediate-mode GUI stack. ERust depends on the internal holy crate for field validation and re-exports the Supabase client from bevy_supa.

  • Native — desktop via eframe with the glow backend.
  • WASM — the same eframe app and ehttp transport on wasm32.
RustLanguage
0.36egui / eframe
native + WASMTargets
MITLicense

What it gives you

Features

egui / eframe extensions

A persisted AppState, a TemplateApp shell, toggle and dark-mode widgets, and image loading from URL, path or base64 into egui textures.

Feature-gated backends

The default egui feature enables egui, eframe, ehttp and image; the optional tauri feature adds blocking OAuth, refresh and session-handoff helpers for a Tauri shell.

Cross-platform

Builds for native desktop and for WebAssembly, with eframe on the glow backend.

State + Supabase

User state and database row models, with the Supabase client re-exported from bevy_supa so erust::supabase paths stay unchanged.

Questions

Frequently asked

What is the ERust crate?

ERust is a Rust package that extends egui and eframe with reusable generic states, widgets, and components, giving KBVE apps a shared foundation for immediate-mode GUIs on desktop and WASM.

Which features does ERust expose?

The default egui feature pulls in egui, eframe, ehttp and image for the widgets and application state. The optional tauri feature adds blocking Supabase helpers for a Tauri shell — completing an OAuth code exchange, refreshing a session, fetching the user, and writing a session handoff file.

Does ERust run in the browser?

Yes. eframe renders through the glow backend on native desktop and in the browser, and the Supabase auth it re-exports from bevy_supa uses the ehttp transport, which compiles for wasm32.

Discuss on the forum

Questions, fixes and notes on this page live in the KBVE forum.