Skip to content

rclement/life-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life WASM

Build Status

Conway's Game of Life using Rust and WebAssembly

Personal implementation of the Rust WASM book.

Setup

Install wasm-pack for Rust:

cargo install wasm-pack

Build

wasm-pack build

(cd pkg && npm link)
(cd www && npm install)
(cd www && npm link life-wasm)
(cd www && npm run build)

Testing

Unit-tests: cargo test

WASM integration tests: wasm-pack test --chrome --firefox --headless

Dev server

cd www && npm run dev

License

MIT License

Copyright (c) 2018 Romain Clement