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

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!"); }
http://www.cnnetsun.cn/news/1368.html

相关文章:

  • 通过 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.地毯
  • 鸿蒙简易时钟应用