Skip to main content

Setting up the environment

Rust Installer -

Currently Rust works with wasm in a nightly build only. You can choose working with nightly build while installing Rust

Customize installation
Default toolchain? (stable/beta/nightly/none)
or right after the installation is done with the command
rustup default nightly

After the night build is chosen, you should add the following to target for compiling to wasm

rustup target add wasm32-unknown-unknown --toolchain nightly

Eventually, you need to add two libraries to the folder, in which you plan to create projects:

GitHub - Rust Libraries for WASM

NOTE: It is not recommended to install Rust on pure Windows. The best option for running Rust on a Windows 10 is to install Rust in Windows Subsystem for Linux.