Extremely simple example of using functions written in Rust from JS via WebAssembly. This is pure Rust and pure wasm, no frameworks or "glue" JS files. As currently WASM understands only numeric types, operations are performed on numbers.
- Make sure you have Rust and wasm32-unknown-unknown toolchain
- Run build.sh
- Run index.html from browser that supports running wasm from filesystem (Firefox) or serve index.html and wasm file from some simple server.