Installation

The Sway toolchain is required to compile Sway programs.

There are three ways to install the Sway toolchain:

The supported operating systems include Linux and macOS; however, Windows is unsupported.

Fuelup

Fuelup is the recommended tool for installation and management of the toolchain.

Cargo

Cargo may be used instead of Fuelup; however, the user needs to manage the toolchain themselves.

The advantage of using Cargo is the installation of plugins that have not been added into Fuelup.

The disadvantage occurs when Fuelup and Cargo are used in tandem because the latest plugins may not be recognized.

Source

The latest features may be accessed when installing from source; however, the features may not be ready for release and lead to unstable behavior.