The Rollup plugin linked to in the article produces JS functions that call into WASM code. JS objects are automatically converted to Rust structs via Serde and vice-versa.
I use TypeScript / Svelte for DOM interactions and only call into Rust code for the state updates (treating it like a black box).
I use TypeScript / Svelte for DOM interactions and only call into Rust code for the state updates (treating it like a black box).