An implementation of Conway's Game of Life using Rust and WebAssembly.
wasm-pack build
cd www && npm install
npm run start
For firefox
wasm-pack test --headless --firefox
OR
For chrome
wasm-pack test --chrome --headless
-
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
. -
Testing with Chrome may fail due to issues with chromedriver version compatibility. You can see more info about this here. To fix:
- Check the version of chrome you have by opening Chrome and going to
Settings > About Chrome
- Check the compatible Chrome version by looking here
- Download and replace the the executable which is usually located in /Users/<
USERNAME
>/Library/Caches/.wasm-pack/chromedriver-1b467be6b1263401 (replace USERNAME with the appropriate username for your machine).
- Check the version of chrome you have by opening Chrome and going to
wasm-bindgen
for communicating between WebAssembly and JavaScript.console_error_panic_hook
for logging panic messages to the developer console.
Built with 🦀🕸