Back to Sway

From Source

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

0.71.0668 B
Original Source

From Source

The Sway toolchain can be built directly from the Sway repository.

Installation & Updating

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

In the root of the repository /sway/<here> build forc with the following command:

<!-- markdown-link-check-enable -->
bash
cargo build

The executable binary can be found in /sway/target/debug/forc.

Using the Toolchain

After installing run the following command to check the version:

bash
/sway/target/debug/forc --version

The output may look similar to:

bash
forc 0.31.2