Skip to content

The docs at rust-lang.github.io/rustup are from master #2720

Closed
@winksaville

Description

@winksaville

Problem
I was reading the rustup/docs the-toolchain-file
section and tried to use rust-toolchain.toml but it didn't work. As it turns out support for .toml was added after
the 1.23.1 release.

Steps
The second paragraph in rustup/docs the-toolchain-file current reads, which is from master as of today:

"In these cases the toolchain can be named in the project's directory in a file
called rust-toolchain.toml or rust-toolchain. If both files are present in
a directory, the latter is used for backwards compatibility. The files use the
[TOML] format and have the following layout:"

But the same paragraph from 1.23.1 reads:

"In these cases the toolchain can be named in the project's directory in a file
called rust-toolchain, the content of which is either the name of a single
rustup toolchain, or a TOML file with the following layout:

Possible Solution(s)
Only publish the latest release

Notes
Output of cat rust-toolchain:

$ cat rust-toolchain
[toolchain]
channel = "stable"
components = [ "rustfmt", "rustc-dev" ]
profile = "minimal"

Output of rustup --version:

$ rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.51.0 (2fd73fabe 2021-03-23)`

Output of rustup show:

$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/wink/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-2021-03-25-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

thumbv7em-none-eabihf
thumbv7m-none-eabi
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (overridden by '/home/wink/prgs/rust/projects/binance-auto-sell/rust-toolchain')
rustc 1.51.0 (2fd73fabe 2021-03-23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-next-releaseThis issue will be fixed in the next release of rustup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions