Description
mogwai is a Rust crate for building GUI applications, mainly in the browser, with cross-platform capabilities. Its name stands for minimal, obvious, graphical widget application interface. It simplifies web app development on top of web-sys, with support for creating and styling elements, handling events, and server-side rendering. Views are built with the rsx! macro, events are futures rather than callbacks, and widgets are ordinary Rust types. Traits keep operations cross-platform, with room for specialisation. The README includes an example of a button that counts clicks. To start, install the Rust toolchain and trunk, then use cargo-generate to create a new project. The project links to its introduction and documentation, a guide called Cooking with Mogwai, and a set of examples. You can discuss it on Element or over Matrix. The crate is published on crates.io, and the author asks for support through GitHub Sponsors.…
Highlights
- Rust crate for browser GUI apps
- Views built with the rsx! macro
- Events are futures, not callbacks
- Server-side rendering and cross-platform traits
- Starts from a cargo-generate template
Ratings & Reviews
No ratings yet
Be the first to rate Mogwai.
People also visit
Rust Yew Realworld Example App
Exemplary real world app built with Rust + Yew + WebAssembly
Mogwai FAQ
What is mogwai?
A Rust crate for building GUI applications, primarily in the browser, with cross-platform capabilities.
What do I need to start?
The Rust toolchain and trunk. Then use cargo-generate to start a new project from the template.
How are events handled?
Events are futures rather than callbacks.
How is it packaged?
It is a Rust crate published on crates.io.
Where can I learn more?
The project links to an introduction, a guide called Cooking with Mogwai, and examples.
What are the best Mogwai alternatives?
Popular alternatives to Mogwai include UI, Tauri and Moebius. See all Mogwai alternatives
