Cargo
Cargo can be used to install the Sway toolchain with various plugins.
Dependencies
A prerequisite for installing and using Sway is the Rust toolchain running on the stable channel.
After installing the Rust toolchain run the following command to check default channel:
rustup toolchain list
The output may look similar to:
stable-x86_64-unknown-linux-gnu (default)
Installation & Updating
The Sway toolchain can be installed/updated with:
cargo install forc