← All Workshops
MudEngine Part 10: Desktop with Blitz
Step 13 / 13
Congratulations!
You just ran your MUD as a native GPU-accelerated desktop application — no browser, no WebView, no JavaScript.
What we achieved:
- Blitz renderer — swapped the browser DOM for a pure-Rust HTML/CSS engine built on WGPU and Vello
- Target-gated dependency —
dioxus-nativestays out of the WASM build via[target.'cfg(not(target_arch = "wasm32"))'.dependencies], sodx servestill compiles the web + server binaries - Three-way entry point — one
main.rsthat launches the SSR server, hydrates the web client, or opens the Blitz window depending on the build target; components keepuse dioxus::prelude::* - Fullstack still works — server functions, WebSocket, and
set_server_url()all function unchanged - Cross-platform clients — the native window and browser tabs share the same game world
- Experimental exploration — you experienced the cutting edge of Rust-native UI rendering
What we learned
Resources
📚 What we learned
| Concept | How we used it |
|---|---|
dioxus_native::launch_cfg(App, vec![], vec![Box::new(cfg)]) | Starts a winit window with the Blitz renderer (custom size/title via Config) |
Target-gated dioxus-native | Kept out of the WASM graph so tokio's wasm feature gate doesn't break dx serve |
set_server_url | Configures the native client to find the Axum server |
| Blitz rendering pipeline | Virtual DOM → Stylo CSS → Taffy layout → Vello GPU draw |
| WGPU backend | Vulkan, Metal, or DX12 — automatic GPU selection |
| Experimental limitations | Missing CSS features, rendering quirks, pre-alpha stability |
|
Step 13 / 13