Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Simple Game of Life implemented using Rust and WebAssembly. Done following https://rustwasm.github.io/docs/book/game-of-life/introduction.html

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

DevDungeon/Rust-WebAssembly-Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀🕸️ Game of Life - Rust & WebAssembly

Prerequisites

Install rustup, rustc, cargo, node, npm, wasm-pack

Links

A template for kick starting a Rust and WebAssembly project using wasm-pack.

This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting package to NPM.

🔋 Batteries Included

🚴 Usage

🐑 Use cargo generate to Clone this Template

Learn more about cargo generate here.

cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project
cd my-project

🛠️ Build with wasm-pack build

wasm-pack build

Initialize index.html www wrapper (already done, do once only)

npm init wasm-app www

Run in browser to test

cd www
npm start

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish

About

Simple Game of Life implemented using Rust and WebAssembly. Done following https://rustwasm.github.io/docs/book/game-of-life/introduction.html

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages