Earlier quoted context omitted.
> but what it's really replacing is JavaScript That is a common misconception, but there no evidence of this. WASM replaces Flash and Flash never replaced JavaScript.
https://github.com/koute/stdweb There's a todomvc example app written in rust with no javascript besides the loader.
Looks like they have to reimplement the entire DOM API with JS interop:
pub fn document() -> Document {
unsafe { js!( return document; ).into_reference_unchecked() }.unwrap()
}