Welcome to the new Golem Cloud Docs! 👋
Documentation
Common Tooling

Common tooling

The following tools are required or optionally usable for most the supported guest languages.

First of all, to install wasm-tools via cargo, you need to install the latest stable version of Rust. The recommended way to do so is using https://rustup.rs (opens in a new tab):

Install Rust

Install rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install the latest stable version of Rust

rustup install stable && rustup default stable

Add the WASI target

rustup target add wasm32-wasi

Install wasm-tools

cargo install --force --locked  wasm-tools@1.210.0

Confirm the installation:

wasm-tools --version
wasm-tools 1.210.0

Install wit-bindgen

Only required for non-Rust Tier 1 Languages

Rust users can skip this step as wit-bindgen is encapsulated by cargo-component

cargo install --force --locked wit-bindgen-cli@0.26.0

Confirm the installation:

wit-bindgen --version
wit-bindgen-cli 0.26.0

Install wasm-opt (optional)

An optional tool for making the wasm modules smaller (recommended for Swift) is wasm-opt

First you need to install the latest version of Go:

brew install golang

Then use it to install wasm-opt:

go install github.com/gonowa/wasm-opt@latest