Minimal Rust + WASM Example
In one tab run:
In another tab run:
If you're not on a Mac, you'll need to install
binaryen a different way.
Make a change
Try changing "Hello, world!" to "Hello, foo!" in
./bin/wasm_watch script should automatically rebuild the project and
./bin/server should reload the web page once that's done. Neat!
To deploy to GitHub pages run:
It will compile the project then copy
target/index.js to a
tmp/ directory. This is then deployed to the gh-pages
branch for the current git repository.