Web UI
View on GitHub - github.com/StoicDreams/RustWebUI
View on crates.io - crates.io/crates/webui
About
webui is a website framework for building webassembly SPA websites quickly and easily.
Goals
- Minimize boilerplate code when starting new website projects.
- Adhere to Material UI standards.
- Provide robust component systems for handling common display types, user input and interactions, and data processing.
Development is just getting started, so we do not recommend using at this point for anything more than experimenting.
Getting Started
These instructions assume you have at least some familiarity with the Rust language and ecosystem.
If you are new to rust, then get started by reading The Rust Book to learn about the language.
This project was setup on a Mac, so for now instructions have not been verified on Windows or Linux machines, though it is expected to have little to no differences in this scope.
Install Required Dev Dependencies
Follow instructions here to install Rust for your system.
Make sure rust is up to date
Install Trunk
Add waxm build target
Start a new Rust project
Start by creating your project using cargo.
Verify your Rust environment is setup correctly.
Update your Cargo.toml file to include webui dependency.
[]
= "name_of_your_app"
= "0.1.0"
= "2021"
[]
= "0.1.4"
Add an index.html file to the root of your project folder (not the src folder).
Make sure to copy the exact contents as below. Head and body content will be filled in by the webui framework code.
Author
Erik Gassler - Stoic Dreams - Just a simpleton who likes making stuff with bits and bytes.
Support - Visit Stoic Dreams' GitHub Sponsor page if you would like to provide support to Stoic Dreams.
License
MIT