ssvmuptool uses the
wasm32-wasicompiler backend for Rust. It supports WASI out of the box.
getrandomcrates. Those crates are written in a way that instructs the
wasm32-wasicompiler backend to generate the correct WASI calls in the WebAssembly bytecode. The
Cargo.tomldependencies are as follows.
println!marco just works in WASI. The statements print to the
STDOUTof the process that runs the SSVM. In Node.js apps, it is the
STDOUTon the Node.js server.