cargo install wasm-pack
wasm-pack build --target web
npm init wasm-app my-web-app
Then in the index.js
of this template, you may start using the wasm stuff:
import init, { chittify } from '../pkg/chitter.js';
await init(); // MAKE SURE TO INITIALIZE!
console.log(chittify('some string'));