A quick demonstration of using Rust in the browser via wasm-pack
. Build with wasm-pack build
. The www
directiory contains a minimal WebPack server with live reloading; start with node start
in that directory.
Read a quick tutorial on rust with wasm here: https://rustwasm.github.io/book/game-of-life/introduction.html
Read more about the binding syntax here: https://rustwasm.github.io/docs/wasm-bindgen/introduction.html
Use it on the web here: https://dmr-coding.github.io/rust-wasm-hello/www/dist