RUST · WEBASSEMBLY · EMSCRIPTEN

Rust can change the DOM.

This page is rendered by HTML and CSS, but the message below is created by Rust running as WebAssembly in your browser.

Live demonstration

Waiting for the Rust WebAssembly module...

The Rust module has not reported its result yet.

Initializing

What happens?

  1. The browser loads the Emscripten JavaScript glue.
  2. The glue loads and initializes the WebAssembly module.
  3. Rust calls an imported JavaScript DOM function.
  4. That function updates the HTML elements on this page.