ssvmup
tool uses the wasm32-wasi
compiler backend for Rust. It supports WASI out of the box.rand
and getrandom
crates. Those crates are written in a way that instructs the wasm32-wasi
compiler backend to generate the correct WASI calls in the WebAssembly bytecode. The Cargo.toml
dependencies are as follows.println!
marco just works in WASI. The statements print to the STDOUT
of the process that runs the SSVM. In Node.js apps, it is the STDOUT
on the Node.js server.