Back to Sway

Cargo

docs/reference/src/documentation/introduction/installation/cargo.md

0.71.0715 B
Original Source

Cargo

<!-- markdown-link-check-disable -->

Cargo can be used to install the Sway toolchain with various plugins.

<!-- markdown-link-check-enable -->

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:

bash
rustup toolchain list

The output may look similar to:

bash
stable-x86_64-unknown-linux-gnu (default)

Installation & Updating

The Sway toolchain can be installed/updated with:

bash
cargo install forc