Lesson 42 of 50
rustWebAssembly with Rust
25 minutes
Course progress84%
WebAssembly with Rust
Compile Rust to WebAssembly using wasm-pack.
cargo new --lib hello_wasm
cd hello_wasm
cargo add wasm-bindgen
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn greet(name: &str) {
(\