An example project to make a rust package and port it to webassembly, then consume the package in a next.js app.
Currently, you'll need to install rust nightly to get the latest wasm-pack tool
Set the default as the nightly build.
rustup default nightly
Get the wasm toolchain
rustup target add wasm32-unknown-unknown --toolchain nightly
Install wasm-pack
cargo install wasm-pack
Compile to a wasm file for consumption in the nextjs app
wasm-pack init