A simple couple of Wasm functions that demonstrate how to build a simple Wasm app.
It exposes a couple of functions that resize and combine a set of images.
-
Install Rust from
www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Add the WebAssembly target and install wasm-pack
rustup target add wasm32-unknown-unknown cargo install wasm-pack
wasm-pack build --target web
npx http-server .
then go to localhost:8080
.