Let's explore Rust's WASM bindings with a simple snake game. Here's the link.
Rust is hard. Rust in WASM is harder. There are much better ways of doing this, I think. TS, maybe Elm, would be my top picks. But once everything was setup, and we had leaked our closures so Rust wouldn't collect them, the project went very fast. Types were a big help, as was Rust's lovely ecosystem of libraries.