Creating a Webassembly App in Rust

Creating a Webassembly App in Rust Created and recorded by Jaysinh Parmar in May 2021 Outline 1. Why WebAssembly with Rust over JavaScript? 2. Install dependencies needed 3. Fetch standard template 4. Demonstrate how to build webassembly application 5. Modify code to import alert from javascript and export the modified alert from rust to wasm 6. Run the webserver Introduction Explain the motivation behind selecting rust for webassembly over javascript: - Reliable performance - Small code size - More detail () Dependencies 1. Get rust toolchain (rustup, rustc, and cargo) 2. wasm-pack, which is your one-stop-shop for building, testing, and publishing Rust-generated WebAssembly. Get it from here: 3. Get cargo-generate to help us quickly build new Rust project by leveraging pre-existing templates (cargo install cargo-generate) 4. Get npm Create WebAssembly App 1. Clone pre-configured default templa