Closed
Description
Problem
I used to specify the toolchain version that I want to use in rust-toolchain.toml
, but recently I get an error like this when I try to use cargo
cargo
error: the 'cargo.exe' binary, normally provided by the 'cargo' component, is not applicable to the 'nightly-2022-07-10-x86_64-pc-windows-msvc' toolchain
Steps
Create a rust-toolchain.toml
file.
[toolchain]
channel = "nightly-2022-07-10"
components = [
"cargo",
]
Install a nightly toolchain using rustup. Then try to run cargo in this workspace.
Possible Solution(s)
- Removing
rust-toolchain.toml
- Changing
nightly-2022-07-10
tonightly
Notes
No response
Rustup version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.64.0-nightly (6dba4ed21 2022-07-09)`
Installed toolchains
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\aminy\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc
nightly-2022-07-10-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-gnu
nightly-x86_64-pc-windows-msvc
1.62.0-x86_64-pc-windows-msvc
active toolchain
----------------
nightly-2022-07-10-x86_64-pc-windows-msvc (overridden by 'C:\...\rust-toolchain.toml')
rustc 1.64.0-nightly (6dba4ed21 2022-07-09)
> rustup component list
cargo-x86_64-pc-windows-msvc (installed)
...