-
Notifications
You must be signed in to change notification settings - Fork 962
update README.md on how to install toolchain and components #6294
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
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: | ||||||||||||||
|
Make sure to have installed the correct toolchain and all components. | |
The needed parts can be found in the file `rust-toolchain`. For example: | |
rustfmt depends on compiler internals and therefore pins a specific version of the nightly compiler. | |
Make sure you've installed the correct nightly [toolchain](https://rust-lang.github.io/rustup/concepts/toolchains.html) and all [components](https://rust-lang.github.io/rustup/concepts/components.html) listed in rustfmt's [`rust-toolchain` file](https://github.com/rust-lang/rustfmt/blob/master/rust-toolchain). |
It's probably worth mentioning this information before telling users to build rustfmt with cargo build
or mention that they should follow these steps if they're having issues building.
Outdated
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'd prefer not to list the content of the rust-toolchain
file inline. Instead, I'd rather linked out to the file [`rust-toolchain`](https://github.com/rust-lang/rustfmt/blob/master/rust-toolchain)
, and let users know that they need to install the exact nightly version of the compiler that rustfmt has pinned in its rust-toolchain
file.
Outdated
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.
Lets point users to the rust-toolchain
file to get the exact date:
``` | |
rustup install nightly-2024-08-17 | |
``` | |
``` | |
rustup install nightly-YYYY-MM-DD | |
``` |
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.