This demonstrates using wasm-bind to call Rust functions from JavaScript.
To run this:
- Enter
npm install
- Enter
npm run serve
- Browse localhost:8080
To build the Rust code in production mode,
edit webpack.config.js
from development
to production
.
Due to the following issue, webpack 5 cannot yet be used with wasm-pack: rustwasm/wasm-pack#835 Is this the same reason it does not work with wasm-bindgen?