Rust WebAssembly Demo 🎨

wasm_game_of_maze_screen

Sample Code in Rust & Wasm

fifth Feb 2025

rustwasmwebassembly

Introduction

This sample does not work with the 2024 Edition. If you are using the 2024 Edition, please refer to the following source code.

Source

You can use WebAssembly to manipulate the browser from Rust, but when the conventions of WASM are layered with Rust's modern features such as borrowing and ownership, lifetimes, closures, and generics, even with a lot of information available, it's difficult to get your own app to build. So, I created a simple (as much as possible in one file with reduced coding) mini-app to experiment with 'web_bindgen' and 'web-sys' processing.

Play in browser

Source

What I learned

Sequece Diagram