Conway's Game of Life on the browser with WebAssembly 🕸, built with Rust 🦀.
You'll need the npm command and the Node.js runtime in order to install the dependencies and run the app. You can download both in one take from the Node.js project website.
- Clone this repository anyware in your machine;
- Move to the project root folder;
- Execute
npm install
to install and configure the dependencies; - Run the web server on port 8080 to serve the app with
npm run start
; - Point your browser to
http://localhost:8080
to see it in action!; 😲
- You can peek the essential Rust code used to generate the
.wasm
inrust/lib.rs
; - The generated
.wasm
and respective JavaScript bindings can be found insrc/lib/
;
This project is a composition of several slightly adapted pieces of code from the rustwasm book. Thus, it strives to accord with the rustwasm book licensing terms. Please, open an issue if you spot any license infrigement.