Slint Memory Game Tutorial in Rust

first try at a very simple matching game

Rust code running in an HTML canvas element


Background

What is This?

This is a very simple game, as an intro to using the Rust language slint framework for cross-platform GUI-oriented development. A simple change in which code-chain I called resulted in the same Rust language source code generating first a compiled desktop application, and then a WASM-based Web-page app on the second call.

This page and code should work within any browser, running on any operating system, on any hardware platform, and on any size of device from handheld to wallscreen.

Why Am I Doing This?

Generally speaking, if I can get something to compile in Rust then the sucker is pretty much bullet-proof. We likes this.