news 2026/6/22 20:19:16

brew 安装 restup 的全过程 rustup default stable ,以及错误

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
brew 安装 restup 的全过程 rustup default stable ,以及错误

安装

rustup default stable

rustup default stable info: syncing channel updates for 'stable-aarch64-apple-darwin' 1009.5 KiB / 1009.5 KiB (100 %) 35.2 KiB/s in 1m 29s 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' 60.9 MiB / 60.9 MiB (100 %) 44.8 KiB/s in 44m 8s info: downloading component 'rustfmt' 1.5 MiB / 1.5 MiB (100 %) 25.6 KiB/s in 2m 18s info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 20.5 MiB / 20.5 MiB (100 %) 5.4 MiB/s in 2s info: installing component 'rust-std' 25.9 MiB / 25.9 MiB (100 %) 23.2 MiB/s in 1s info: installing component 'rustc' 60.9 MiB / 60.9 MiB (100 %) 25.3 MiB/s in 2s info: installing component 'rustfmt' info: default toolchain set to 'stable-aarch64-apple-darwin' stable-aarch64-apple-darwin installed - rustc 1.91.1 (ed61e7d7e 2025-11-07)

主要是因为网络原因引发的错误

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'

7.6 MiB / 60.9 MiB ( 13 %) 17.0 KiB/s in 13m 26s ETA: 53m 20s

info:retrying download for 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz'

40.3 KiB / 60.9 MiB ( 0 %) 20.1 KiB/s in 48s ETA: 51m 32s

info:retrying download for 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz'

21.7 MiB / 60.9 MiB ( 36 %) 15.8 KiB/s in 17m 59s ETA: 42m 13s

info:retrying download for 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz'

error:component download failed for rustc-aarch64-apple-darwin: could not download file from 'https://static.rust-lang.org/dist/2025-11-10/rustc-1.91.1-aarch64-apple-darwin.tar.xz' to '/Users/tree/.rustup/downloads/327c9017195b4ad0465ab6b1f1036377415cc6dc3612301af6ed9e3414ff53c8.partial': error decoding response body: request or response body error: operation timed out

rustup 的下载和更新速度比较慢。

创建项目后,Run 时会加载 Reloading 项目所需的「库」文件。

第一个项目的默认结构

fn main() { println!("Hello, world!"); }
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/22 23:05:49

第十四章聚类方法理论及Python实现

文章目录1.基本概念1.1 距离or相似度1.2 类或簇1.3 类与类之间的距离2. 层次聚类算法基本理论2.1 Python代码实现层次分析法例题3. K均值聚类方法3.1 K均值算法特性3.2 Python实现K均值聚类是针对给定的样本,依据它们特征的相似度或距离,将其归并到若干个…

作者头像 李华
网站建设 2026/6/23 1:06:10

VUE快速入门

VUE是一款用于构建用户界面的渐进式的JavaScript框架 准备&#xff1a;1.引入VUE模块2.创建VUE程序的应用实例&#xff0c;控制视图的元素3.准备元素(div),被Vue控制<body><div id"app"><h1>{{message}}</h1><h2>{{count}}</h2>…

作者头像 李华
网站建设 2026/6/23 4:18:01

Ajax-快速学习

作用&#xff1a;数据交换&#xff1a;通过Ajax可以给服务器发送请求&#xff0c;并获取服务器响应的数据异步交互&#xff1a;可以在不重新加载整个页面的情况下&#xff0c;与服务器交换数据并更新部分网页的技术扩展&#xff1a;同步与异步的区别代码示例<input type&quo…

作者头像 李华
网站建设 2026/6/23 13:09:56

Incoloy 907高性能的铁镍钴基高温合金Incoloy907英科耐尔合金

Incoloy907Incoloy 907是一种高性能的铁镍钴基高温合金&#xff0c;核心优势在于其极低的热膨胀系数与高温强度、抗蠕变能力的结合&#xff0c;专为严苛的热循环环境设计。‌‌核心特性&#xff1a;‌‌极低的热膨胀系数&#xff1a;‌ 这是907最突出的特点&#xff0c;使其在高…

作者头像 李华