Install Rust

curl --proto '=https' --tlsv1.2 -sSf | sh


Once Rust is installed environment has to be modified, so binaries can be found.

source $HOME/.cargo/env

Content of $HOME/.cargo/env looks like:

# rustup shell setup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
        # Prepending path in case a system-installed rustc needs to be overridden
        export PATH="$HOME/.cargo/bin:$PATH"

Update Rust

rustup update nightly && rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly

Install wasm-pack

curl -sSf | sh

Last updated