brew reinstall rustup
==>Fetching downloads for:rustup
✔︎ Bottle rustup (1.28.2) [Downloaded 4.9MB/ 4.9MB]
==>Reinstallingrustup
==>Pouring rustup-1.28.2.arm64_sequoia.bottle.tar.gz
==>Caveats
To initialize `rustup`, set a default toolchain:
rustup default stable
If you have `rust` installed, ensure you have "$(brew --prefix rustup)/bin"
before "$(brew --prefix)/bin" in your $PATH:
https://rust-lang.github.io/rustup/installation/already-installed-rust.html
rustup is keg-only, which means it was not symlinked into /opt/homebrew,
because it conflicts with rust.
If you need to have rustup first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zshrc
==>Summary
🍺 /opt/homebrew/Cellar/rustup/1.28.2: 27 files, 11.5MB
==>Running `brew cleanup rustup`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==>Caveats
zsh completions have been installed to:
/opt/homebrew/opt/rustup/share/zsh/site-functions
https://formulae.brew.sh/formula/rustup#default
安装的 https://rust-lang.github.io/rustup/
brew install rustup
brew install rustup
✔︎ JSON API formula.jws.json [Downloaded 31.7MB/ 31.7MB]
✔︎ JSON API cask.jws.json [Downloaded 15.1MB/ 15.1MB]
==>Fetching downloads for:rustup
✔︎ Bottle rustup (1.28.2) [Downloaded 4.9MB/ 4.9MB]
==>Pouring rustup-1.28.2.arm64_sequoia.bottle.tar.gz
==>Caveats
To initialize `rustup`, set a default toolchain:
rustup default stable
If you have `rust` installed, ensure you have "$(brew --prefix rustup)/bin"
before "$(brew --prefix)/bin" in your $PATH:
https://rust-lang.github.io/rustup/installation/already-installed-rust.html
rustup is keg-only, which means it was not symlinked into /opt/homebrew,
because it conflicts with rust.
If you need to have rustup first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zshrc
==>Summary
🍺 /opt/homebrew/Cellar/rustup/1.28.2: 27 files, 11.5MB
==>Running `brew cleanup rustup`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==>Caveats
zsh completions have been installed to:
/opt/homebrew/opt/rustup/share/zsh/site-functions
rustup default stable
info:syncing channel updates for 'stable-aarch64-apple-darwin'
1009.5 KiB / 1009.5 KiB (100 %) 27.1 KiB/s in 43s
info:latest update on 2025-11-10, rust version 1.91.1 (ed61e7d7e 2025-11-07)
info:downloading component 'cargo'
info:downloading component 'clippy'
info:downloading component 'rust-docs'
info:downloading component 'rust-std'
info:downloading component 'rustc'
2.4 MiB / 60.9 MiB ( 4 %) 5.0 KiB/s in 3m 45s ETA: 3h 21m 0s
info: retrying download for 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz' (网络原因会被主动切别的站点)
1.7 MiB / 60.9 MiB ( 3 %) 14.7 KiB/s in 2m 15s ETA: 1h 8m 37s
这是 官方关于 rust 第一次创建项目的两个基本项 安装
https://www.jetbrains.com/help/rust/rust-toolchain.html#install-rust-on-your-own
https://rust-lang.github.io/rustup/installation/already-installed-rust.html