WebAssembly 3.0 landed in 2025 with native GC, memory64 (16GB memory), and WASI Preview 2 with networking. In 2026, Rust is the de facto language for writing WASM — smaller binaries, no garbage collector, near-native speed.
In this complete guide I take you from zero to two working programs: a real image processing module for the browser using wasm-bindgen and wasm-pack, and a WASI module that runs on the server with Wasmtime. We also cover binary optimisation with wasm-opt and an honest guide to when WASM is and is not worth using.
━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤝 PARTNER
━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ CodeCrafters — Build your own Redis, Git, Shell & more in Rust:
https://app.codecrafters.io/join?via=...
━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱️ TIMESTAMPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━
00:00 — Hook: WebAssembly 3.0 and why 2026 is different
01:35 — Partner: CodeCrafters — build real developer tools in Rust
03:51 — What WebAssembly actually is (mental model)
05:03 — Why Rust produces the best WASM binaries (no GC, binary size)
06:35 — Toolchain setup: rustup, wasm-pack, wasm-opt, Wasmtime
07:26 — Mid-video check-in (like + subscribe)
07:36 — Building a real image processor in Rust WASM
07:53 — Cargo.toml: release profile optimisations explained
08:53 — lib.rs: wasm-bindgen grayscale, brightness, invert
10:33 — Exposing a Rust struct as a JavaScript class
10:57 — JavaScript side: init(), canvas integration
11:59 — WASI: WebAssembly outside the browser
12:58 — WASI project setup and Rust code walkthrough
13:27 — Join the Discord
13:42 — wasm-opt: shrinking your binary by 20–40%
14:39 — Support the channel (Buy Me A Coffee)
14:54 — When to use — and NOT use — Rust WASM
16:52 — Outro, resources, and next videos
━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 KEY FACTS FROM THIS VIDEO
━━━━━━━━━━━━━━━━━━━━━━━━━━━
• WebAssembly 3.0: finalized September 2025
• WASI Preview 2: networking + socket support now stable
• WASM vs JS: 5x–15x faster for CPU-bound browser tasks
• wasm-opt -Oz: reduces binary size by up to 40%
• Rust has no GC → smaller WASM binary, no GC pauses
• WASM + WASI: lighter than Docker, starts in milliseconds
• wasm-pack 0.12.1 — current stable version (2026)
━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛠️ TOOLS USED IN THIS VIDEO
━━━━━━━━━━━━━━━━━━━━━━━━━━━
• wasm-pack 0.12.1
• wasm-bindgen 0.2
• wasm-opt (Binaryen)
• Wasmtime (latest)
• Rust edition 2024, wasm32-unknown-unknown + wasm32-wasip1 targets
━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 CODE FROM THIS VIDEO
━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ GitHub: https://github.com/AarambhDevHub
━━━━━━━━━━━━━━━━━━━━━━━━━━━
🦀 GO DEEPER
━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ Gupti Series — Full Axum + Leptos app (Leptos compiles to WASM): • Build a One-Time Secret Sharing App in Rus...
━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 JOIN THE COMMUNITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ Discord: / discord
→ LinkedIn: / darshan-vichhi-rust-developer
━━━━━━━━━━━━━━━━━━━━━━━━━━━
☕ SUPPORT AARAMBH DEV HUB
━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ GitHub Sponsors: https://github.com/sponsors/aarambh-d...
→ Buy Me a Coffee: https://buymeacoffee.com/aarambhdevhub
→ Razorpay: https://razorpay.me/@aarambhdevhub
→ Fiverr: https://fiverr.com/s/XL1ab4G
━━━━━━━━━━━━━━━━━━━━━━━━━━━
#Rust #WebAssembly #WASM #RustWASM #wasmBindgen #WASI #Wasmtime #RustProgramming #WebDevelopment #Programming2026 #AarambhDevHub #LearnRust #wasmPack #EdgeComputing #ServerlessWASM