← All Workshops

MudEngine Part 1: Requirements

Step 4 / 13

Where does WASM sit in the browser?

The diagram below shows how Rust code flows through the toolchain into a WASM module and how that module lives inside the browser alongside the JavaScript engine, the DOM, and the rendering APIs.

"🌐 Browser Runtime" "WebAssembly Runtime" "🖥️ Development" "import/export" Rust Source main.rs Cargo + rustc LLVM Backend .wasm Binary Stack-machine bytecode WASM Module wasm32-unknown-unknown Linear Memory Contiguous byte array Function Table Indirect calls JavaScript Engine V8 / SpiderMonkey DOM API web-sys Canvas / WebGL GPU pipeline Web APIs fetch / WebSocket
Step 4 / 13