A toolchain installer for Rust
Questions tagged [rustup]
82 questions
163
votes
4 answers
No default toolchain configured after installing rustup
I installed Rust using rustup, but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:
error: no default toolchain configured
Is this a known issue?

Darkaird
- 2,700
- 4
- 15
- 29
140
votes
4 answers
How to uninstall Rust that was installed via rustup?
I installed Rust on my Ubuntu 16.04 machine through
curl https://sh.rustup.rs -sSf | sh
as can be seen on the Installation Page.
How do I now uninstall Rust?

vvvvv
- 25,404
- 19
- 49
- 81
94
votes
4 answers
How to switch between Rust toolchains?
rustup help toolchain lists the following sub-commands
SUBCOMMANDS:
list List installed toolchains
install Install or update a given toolchain
uninstall Uninstall a toolchain
link Create a custom toolchain by…

Palash Nigam
- 1,653
- 3
- 14
- 26
49
votes
1 answer
Can't use `-Z macro-backtrace` unstable option with `cargo`
I am writing rust macros and came across an error about my macro I can't understand. In hope of understanding it better, I tried to follow the compiler's advice by setting the -Z macro-backtrace unstable option and compiling again. Here is said…

Dincio
- 1,010
- 1
- 13
- 25
44
votes
2 answers
How to remove Rust compiler toolchains with Rustup?
The Rustup documentation shows how to install Rust nightly, but not how to remove it.
While the docs do show how to uninstall rustup entirely, I'd like to keep the stable branch.
How can I uninstall Rust nightly?
Note that I attempted to do the…

ideasman42
- 42,413
- 44
- 197
- 320
30
votes
3 answers
error: toolchain 'stable-x86_64-apple-darwin' does not have the binary `rustfmt`
I've run rustup update to update my toolchain and saw two warnings:
warning: tool `rustfmt` is already installed, remove it from `/Users//.cargo/bin`, then run `rustup update` to have rustup manage this tool.
warning: tool `cargo-fmt` is…

dvnguyen
- 2,954
- 17
- 24
29
votes
3 answers
Step by step instruction to install Rust and Cargo for mingw with Msys2?
I tried to install Rust on Cygwin but failed to be able link with mingw. Now I am trying to install it with Msys2. I already installed Msys2 and Mingw. I tried to follow this wiki page but I got lost at number 2:
Download and install Rust+Cargo…

ThangNguyen
- 501
- 2
- 5
- 13
25
votes
1 answer
What is a "default host triple" in Rust?
While doing a custom installation of Rust on Windows 10, I am asked "Default host triple?"
I have no clue what this is, and the Rustup repository page, which came up in a web search, does not really explain it.

Sabuncu
- 5,095
- 5
- 55
- 89
24
votes
7 answers
rustup gives command not found error with zsh even after installing with brew
I installed rustup with brew command but still says that rustup command is not found. I am not sure if I am missing any installation step. Any help would be appreciated.

Rohith Joseph
- 603
- 1
- 5
- 17
16
votes
3 answers
Where does rustup install itself to?
I understand that rustup installs the rustc and cargo binaries to ~/.cargo/bin, but where does it install the rustup executable to? As far as I can tell this isn't explained in any documentation and running the installer doesn't tell you either. I'd…

Adrian
- 14,931
- 9
- 45
- 70
13
votes
1 answer
How can I set default authors for new Cargo projects?
When creating a new project with cargo new, I would like to have the Cargo.toml file automatically include a predefined authors field.
The Rust book said:
The next four lines set the configuration information Cargo needs to compile your program:…

Galarmo
- 303
- 3
- 7
12
votes
1 answer
What exactly is a Rust "toolchain"?
I've seen rustup be referred to as a "toolchain installer", but it's hard to find an exact definition of what Rust considers a "toolchain" to be and what the scope is for the concept.
I already have the Rust compiler and Cargo installed. What more…

Seb Nilsson
- 26,200
- 30
- 103
- 130
11
votes
1 answer
How should I update the version of Rustup? not updating the version of rustc or cargo
I am pretty new to Rust and currently reading Rust book on the official website.
I am now looking into Rustup, which I think is very cool.
I get that we can manage the version of rustc and cargo with Rustup, but what if I want to upgrade Rustup's…

이하영 Hayoung
- 179
- 1
- 1
- 9
10
votes
3 answers
Is there a Rust build for aarch64-linux-android?
Recently I got a new smartphone with fairly beefy specs, so wanting to play around with Rust on the go I installed Termux and tried to rustup-init. However, this fails:
info: syncing channel updates for 'stable-aarch64-linux-android'
info: latest…

llogiq
- 13,815
- 8
- 40
- 72
10
votes
1 answer
How to build a 32bit static binary with Rust?
Using Creating a basic webservice in Rust and Taking Rust everywhere with rustup as documentation, I have managed to successfully compile a 64 bit static binary with Rust:
rustup target add x86_64-unknown-linux-musl
cargo build…

Andrei Oprisan
- 408
- 3
- 10