Slowly writing an implementation of a VDOM following this article. No idea if this has any actual speed advantage over full JavaScript, as it stills calls DOM APIs to create elements and all.
Prepare for wasm building:
rustup target add wasm32-unknown-unknown
next, run the actual compilation
cargo build --release --target wasm32-unknown-unknown
and this wraps it into a usable .js
wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/rust_vdom_example.wasm
Just serve the index.html:
npx serve .