forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,13 @@ For user documentation, see the Sway Book: <https://fuellabs.github.io/sway/late | |
|
||
Sway is built in Rust. To begin, install the Rust toolchain following instructions at <https://www.rust-lang.org/tools/install>. Then configure your Rust toolchain to use Rust `stable`: | ||
|
||
```console | ||
```sh | ||
rustup default stable | ||
``` | ||
|
||
If not already done, add the Cargo bin directory to your `PATH` by adding the following line to `~/.profile` and restarting the shell session. | ||
|
||
```console | ||
```sh | ||
export PATH="${HOME}/.cargo/bin:${PATH}" | ||
``` | ||
|
||
|
@@ -31,23 +31,23 @@ To ensure access to all dependent repositories, [create](https://docs.github.com | |
|
||
Clone the repository and build the Sway toolchain: | ||
|
||
```console | ||
```sh | ||
git clone [email protected]:FuelLabs/sway.git | ||
cd sway | ||
cargo build | ||
``` | ||
|
||
Confirm the Sway toolchain built successfully: | ||
|
||
```console | ||
```sh | ||
cargo run --bin forc -- --help | ||
# or | ||
./target/debug/forc --help | ||
``` | ||
|
||
To run `forc` from any directory, install `forc` to your local Cargo bin directory: | ||
|
||
```console | ||
```sh | ||
cargo install --path forc | ||
# Also install sway-server if using the IDE plugin | ||
cargo install --path sway-server | ||
|