Simple tutorial to run Wasm Rust module in a browser
Recently I was experimenting with WebAssembly, a binary format that can be executed in JavaScript environments, such as browsers. It was a lot of fun and I want to share how to create a simple web page that is using wasm module written in Rust language. We will use wasm-bindgen-cli
tool to generate .js
files and then create a web page that uses the wasm module and test what we created in the browser.