An implementation of Conway's Game of Life using Rust and WebAssembly.
wasm-pack build
cd www && npm install
npm run start
wasm-pack test --headless --firefox
-
If the error in the image below occurs when running
npm run start
on MacOS, it can be fixed by runningexport NODE_OPTIONS=--openssl-legacy-provider
.
wasm-bindgen
for communicating between WebAssembly and JavaScript.console_error_panic_hook
for logging panic messages to the developer console.
Built with 🦀🕸