The ssvmup tool
The compiler toolchain for Rust functions in JavaScript
The ssvmup uses
wasm-bindgen
to automatically generate the “glue” code between JavaScript and Rust source code so that they can communicate using their native data types. Without it, the function arguments and return values would be limited to very simple types (i.e., 32-bit integers) supported natively by WebAssembly. For example, strings or arrays would not be possible without ssvmup and wasm-bindgen
.$ npm install -g ssvmup # Append --unsafe-perm if permission denied
You could also install ssvmup as a standalone tool for runtimes such as Deno. You need to have Rust installed before running the command below.
$ curl https://raw.githubusercontent.com/second-state/ssvmup/master/installer/init.sh -sSf | sh
Last modified 3yr ago