Skip to content

Commit

Permalink
update documentation on how to install toolchain and components
Browse files Browse the repository at this point in the history
  • Loading branch information
Goetz Markgraf committed Aug 25, 2024
1 parent 4489061 commit 29674fc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,31 @@ for more info.
To run rustfmt after this, use `cargo run --bin rustfmt -- filename`. See the
notes above on running rustfmt.

All command should be run in the project's root directory.

### Update Toolchain

Make sure to have installed the correct toolchain and all components.
The needed parts can be found in the file `rust-toolchain`. For example:

```
[toolchain]
channel = "nightly-2024-08-17"
components = ["llvm-tools", "rustc-dev"]
```

According to this content, install the toolchain with `rustup install`:

```
rustup install nightly-2024-08-17
```

and the components with `rustup component add`

```
rustup component add llvm-tools
rustup component add rustc-dev
```
## Configuring Rustfmt
Expand Down

0 comments on commit 29674fc

Please sign in to comment.