Expand description

The wasm32-wasip1 enables compiling to WebAssembly using the first version of the WASI standard, called “preview1”. This version of the standard was never formally specified and WASI has since evolved to a “preview2”. This target in rustc uses the previous version of the proposal.

This target uses the syscalls defined at https://github.com/WebAssembly/WASI/tree/main/legacy/preview1.

Note that this target was historically called wasm32-wasi originally and was since renamed to wasm32-wasip1 after the preview2 target was introduced.

Functions§