Based on the tutorial from the Rust 🦀 and WebAssembly 🕸 book; it demonstrates how to compile Rust sources into WebAssembly to be served via Node.js.
This project requires Rust to be installed via rustup
as well as the wasm-pack
being
installed. To verify, run wasm-pack --version
.
$ git clone https://github.com/tglaeser/life.git
$ cd ./life
$ tree -L 3 .
.
├── Cargo.toml
├── core
│ ├── Cargo.toml
│ ├── README.md
│ ├── src
│ │ ├── lib.rs
│ │ └── utils.rs
│ └── tests
│ └── web.rs
├── LICENSE_APACHE
├── LICENSE_MIT
├── README.md
└── web
├── bootstrap.js
├── index.html
├── index.js
├── package.json
├── README.md
├── stylesheet.css
├── timer.js
└── webpack.config.js