4 ms·
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
by nicolodavis 6y ago
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).