You are viewing documentation generated from a user contribution or an upcoming or past release. The contents of this document may not have been reviewed by the Deno team. Click here to view the documentation for the latest release.
This page contains some further information that is helpful when using and/or developing WebAssembly modules.
Further information on all parts of the WebAssembly API can be found on MDN.
Working with Non-Numeric Types
If you plan to do a lot of work with Web APIs in Rust+WebAssembly, you may find
the web_sys and
Rust crates useful.
web_sys contains bindings to most of the Web APIs that are
available in Deno, while
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 here. In addition, the rust-wasm group has a list of tools that can be used to optimize and manipulate WebAssembly binaries.