当前位置: 首页 > news >正文

brew 安装 rustup ,以及初始化 rustup default stable

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

http://www.cnnetsun.cn/news/1369.html

相关文章:

  • brew 安装 restup 的全过程 rustup default stable ,以及错误
  • 通过 Brew 安装 rustup 后,要在 rustrover 配置; 以及 Brew 之后需要 source $HOME/.cargo/env
  • 被京能数智笔记播客狠狠种草!文章一键转 4 种结构化笔记,私域效率党直接封神
  • 第十四章聚类方法理论及Python实现
  • VUE快速入门
  • Ajax-快速学习
  • Incoloy 907高性能的铁镍钴基高温合金Incoloy907英科耐尔合金
  • Incoloy945镍铁铬合金Incoloy 945应用领域在‌高强度紧固件、阀门、涡轮部件‌
  • Incoloy945X(UNS N09945)镍铁铬基沉淀硬化合金Incoloy 945X合金板材 合金锻件
  • Incoloy 020是一种高性能的‌镍-铁-铬合金‌Incoloy020棒料 锻件 带材
  • 如何在GraniStudio零代码平台搭建MES的零代码生产监控看板开发?
  • 如何在GraniStudio零代码将算子封装成方法,实现封装算子功能?
  • GraniStudio零代码平台支持哪些品牌的相机?
  • GraniStudio零代码平台支持多少种厂家IO模块和IO模块型号?
  • GraniStudio零代码平台通信(如 TCP服务器 )工具支持几种?
  • GraniStudio零代码平台支持OPC协议吗?
  • GraniStudio零代码平台支持多少种数据库?分别是什么数据库?
  • 如何使用GraniStudio零代码平台类型转换算子?哪些数据类型之间可以互转?
  • GraniStudio零代码平台支持多少种处理字符串方式?分别都是使用什么方式处理?
  • C++数据结构:stack实现
  • 开源存储新变局:MinIO步入维护期后的五大替代方案深度解析
  • DAY 35 官方文档的阅读
  • condition参数
  • 基于微信小程序的德育实践活动管理小程序设计与实现
  • 基于SpringBoot+Vue的护理知识在线咨询系统设计与实现
  • 基于Python+Django的社区警务信息管理系统设计与实现
  • esp32控制舵机
  • 手写 new:深入 JavaScript 对象创建机制,彻底搞懂 arguments 这个“伪装者”
  • 【计算机算法与设计(10)】习题:苹果买卖问题——分治法的经典应用
  • 【算法通关指南:算法基础篇(四)】二维差分专题:1.【模板】差分 2.地毯