Production-ready template for building WebAssembly apps with Rust. Pre-wired for Cloudflare Pages and GitHub Actions.
Use this workflow to start a fresh project without linking back to this template.
# 1. Clone into your new project folder
git clone https://github.com/junovhs/rust-dioxus-wasm my-new-app
# 2. Enter folder
cd my-new-app
# 3. Detach (Remove git history)
rm -rf .git
# Windows PowerShell: Remove-Item -Recurse -Force .git
# 4. Start fresh
git init
git add .
git commit -m "Initial commit"Update the name in these two files:
Cargo.toml: Changename = "rust-dioxus-wasm"to your project name.Dioxus.toml: Changenameandtitle.
dx serveServer runs at http://localhost:8080.
- Logic:
src/(Rust/Dioxus). - JS Interop:
assets/js/bridge.jshandles browser APIs (Audio, Maps, etc). - Routing:
_redirectsfile ensures SPA routing works on Cloudflare/Netlify. - CI/CD:
.github/workflows/deploy.ymlbuilds release and deploys on push to main.
- Rust
- Dioxus CLI:
cargo install dioxus-cli - WASM Target:
rustup target add wasm32-unknown-unknown