Further information on all parts of the WebAssembly API can be found on .

    An example on how to create type bindings between JavaScript and Rust, compiling it into a binary and calling it from a JavaScript program can be found on MDN.

    For production builds it can be a good idea to perform optimizations on WebAssembly binaries. If you’re mainly serving binaries over networks then optimizing for size can make a real difference, whereas if you’re mainly executing WebAssembly on a server to perform computationally intensive tasks, optimizing for speed can be beneficial. You can find a good guide on optimizing (production) builds . In addition, the rust-wasm group has a list of tools that can be used to optimize and manipulate WebAssembly binaries.