Registry / other / eframe

eframe

JSON →
library0.33.3rscratesunverified

egui framework for writing GUI apps that compile to both web and native platforms.

# Cargo.toml [dependencies] eframe = "0.33.3"
INSTALL
IMPORT
SIG · EFRAME
E
eframe
otherrustv0.33.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_native
use eframe::run_native;

Runs a native egui application with default options.

use eframe::run_native; use eframe::egui; fn main() -> Result<(), eframe::Error> { let options = eframe::NativeOptions::default(); run_native("My App", options, Box::new(|_cc| Box::new(MyApp::default()))) } struct MyApp; impl eframe::App for MyApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { egui::CentralPanel::default().show(ctx, |ui| { ui.label("Hello, world!"); }); } }
Debug
Known issues
gotchaRequires feature flags for web target (e.g., `default-features = false, features = ["default_screen_reader"]`)
fix
Add `default-features = false` and enable `default_screen_reader` or other web features in Cargo.toml
affects: >=0.33.0
Upgrade
Version history
0.33.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
eframe — cargo add eframe · libregistry