A simple demo about
- calling JS functions from Rust
- calling Rust functions from JS
- NodeJS v18+ https://nodejs.org/en/download
- Rust, https://www.rust-lang.org/tools/install
- install npm packages
- install wasm-pack, via
cargo install wasm-pack
$> wasm-pack build --target web
$> npx http-server
go to http://localhost:8080