How webui-dev/rust-webui works
Rust-WebUI is a Rust wrapper for a small C library that launches installed browsers as application GUIs. An application creates a window, supplies HTML or content, and waits for windows to close; frontend events and JavaScript/data exchange are exposed through Rust APIs. The wrapper also covers browser selection, window configuration, file serving, and lifecycle control. The excerpts show Rust-to-FFI calls and declarations; the README documents the native-library/browser role, but native implementation details are not present here.
Main entry points: webui.rs Window and UI API · bindgen.rs C FFI declarations
Components 6
Rust wrapper
- Window and UI API
src/webui.rs - Events and JS API
src/webui.rs - C FFI declarations
src/webui/bindgen.rs
Native runtime
- WebUI C library
Browser UI
- Installed browser
Other components
- Rust application
Connections 6
- Rust application → Window and UI API: creates and shows
README.md - Rust application → Window and UI API: waits for closure
README.md - Window and UI API → C FFI declarations: calls native API
src/webui.rs - Events and JS API → C FFI declarations: calls event API
src/webui.rs - C FFI declarations → WebUI C library: declares C interface
README.md - WebUI C library → Installed browser: launches as GUI
README.md