-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update README.md on how to install toolchain and components #6294
base: master
Are you sure you want to change the base?
Changes from 2 commits
29674fc
96b9441
b398f1b
8efc328
071b3fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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: | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
It's probably worth mentioning this information before telling users to build rustfmt with |
||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
[toolchain] | ||||||||||||||
channel = "nightly-2024-08-17" | ||||||||||||||
components = ["llvm-tools", "rustc-dev"] | ||||||||||||||
``` | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer not to list the content of the |
||||||||||||||
|
||||||||||||||
According to this content, install the toolchain with `rustup install`: | ||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
rustup install nightly-2024-08-17 | ||||||||||||||
``` | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets point users to the
Suggested change
|
||||||||||||||
|
||||||||||||||
and the components with `rustup component add` | ||||||||||||||
|
||||||||||||||
``` | ||||||||||||||
rustup component add llvm-tools | ||||||||||||||
rustup component add rustc-dev | ||||||||||||||
``` | ||||||||||||||
|
||||||||||||||
## Configuring Rustfmt | ||||||||||||||
|
||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is correct. You should be able to install the nightly toolchain and components from anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have completly re-written the section.