Rust 最新版1.75.0升级记

本文描述了如何使用rustup工具从稳定版1.70.0升级到最新版本1.75.0的过程,包括检查更新、同步通道、下载组件并清理旧版本的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

升级方法

稳定版

当前版本号1.70.0

升级稳定版,需要用上参数 stable

C:\>rustup update stable
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: downloading component 'cargo'
  5.9 MiB /   5.9 MiB (100 %)   3.7 MiB/s in  1s ETA:  0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   9.2 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std'
 17.9 MiB /  17.9 MiB (100 %)   8.2 MiB/s in  2s ETA:  0s
info: downloading component 'rustc'
 58.7 MiB /  58.7 MiB (100 %)   9.5 MiB/s in  6s ETA:  0s
info: downloading component 'rustfmt'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   2.5 MiB/s in  4s ETA:  0s
info: installing component 'rust-std'
 17.9 MiB /  17.9 MiB (100 %)  17.1 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 58.7 MiB /  58.7 MiB (100 %)  17.1 MiB/s in  3s ETA:  0s
info: installing component 'rustfmt'

  stable-x86_64-pc-windows-msvc updated - rustc 1.75.0 (82e1608df 2023-12-21) (from rustc 1.74.0 (79e9716c9 2023-11-13))

info: checking for self-update

C:\>rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.70.0 (90c541806 2023-05-31)`

C:\>rustc --version
rustc 1.70.0 (90c541806 2023-05-31)

最新版

当前版本号1.75.0

稳定版刚升级完,连续升级到最新版需要删除下载和临时目录重试升级:

C:\>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
400.0 KiB / 710.0 KiB ( 56 %)  19.2 KiB/s in  1m 45s ETA: 16s
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml' to 'C:\Users\boyso\.rustup\tmp\und43x6p2h0eb9yj_file.toml'
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
710.0 KiB / 710.0 KiB (100 %) 128.0 KiB/s in 10s ETA:  0s
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: checking for self-update

  stable-x86_64-pc-windows-gnu update failed - rustc 1.70.0 (90c541806 2023-05-31)
     stable-x86_64-pc-windows-msvc unchanged - rustc 1.75.0 (82e1608df 2023-12-21)

info: cleaning up downloads & tmp directories

C:\>rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-gnu'
710.0 KiB / 710.0 KiB (100 %) 271.4 KiB/s in  2s ETA:  0s
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: downloading component 'cargo'
  9.5 MiB /   9.5 MiB (100 %)   1.8 MiB/s in  6s ETA:  0s
info: downloading component 'clippy'
  3.3 MiB /   3.3 MiB (100 %)   2.8 MiB/s in  1s ETA:  0s
info: downloading component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   3.4 MiB/s in  5s ETA:  0s
info: downloading component 'rust-mingw'
  4.7 MiB /   4.7 MiB (100 %)   2.1 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std'
 21.9 MiB /  21.9 MiB (100 %)   2.2 MiB/s in 11s ETA:  0s
info: downloading component 'rustc'
 72.8 MiB /  72.8 MiB (100 %)   1.6 MiB/s in 45s ETA:  0s
info: downloading component 'rustfmt'
  3.2 MiB /   3.2 MiB (100 %) 990.6 KiB/s in  4s ETA:  0s
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-mingw'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 14.3 MiB /  14.3 MiB (100 %)   2.4 MiB/s in  5s ETA:  0s
info: installing component 'rust-mingw'
info: installing component 'rust-std'
 21.9 MiB /  21.9 MiB (100 %)  12.8 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 72.8 MiB /  72.8 MiB (100 %)  13.7 MiB/s in  5s ETA:  0s
info: installing component 'rustfmt'
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
710.0 KiB / 710.0 KiB (100 %) 495.4 KiB/s in  2s ETA:  0s
info: latest update on 2023-12-28, rust version 1.75.0 (82e1608df 2023-12-21)
info: checking for self-update

     stable-x86_64-pc-windows-gnu updated - rustc 1.75.0 (82e1608df 2023-12-21) (from rustc 1.70.0 (90c541806 2023-05-31))
  stable-x86_64-pc-windows-msvc unchanged - rustc 1.75.0 (82e1608df 2023-12-21)

info: cleaning up downloads & tmp directories

C:\>rustc --version
rustc 1.75.0 (82e1608df 2023-12-21)

目录

升级方法

稳定版

最新版


升级结束后,版本后为: 1.75.0

### OpenCloudOS 9 版本特性 OpenCloudOS 9 是一款面向未来的操作系统,旨在提供稳定、高效的企业级服务环境。该版本继承并发扬了之前版本的优点,在多个方面进行了改进和优化。 #### 新增功能与改进 - **内核升级**:采用最新的 Linux 内核版本,增强了系统的性能和稳定性[^3]。 - **软件包更新**:引入了一系列新的编译器和技术栈,包括但不限于 Python 3.12, GCC Toolset 13, LLVM Toolset 17, Rust Toolset 1.75.0 和 Go Toolset 1.21.0最新版开发工具。 - **安全性增强**:通过集成多种安全机制来保护数据隐私及系统免受攻击威胁。 ### 安装指南 为了顺利部署 OpenCloudOS 9,请按照如下说明操作: #### 准备工作 确保目标机器满足最低硬件配置需求,并连接到互联网以便获取必要的安装文件。 #### 下载镜像 访问官方镜像站点下载适合架构类型的 ISO 文件: ```bash wget https://mirrors.opencloudos.tech/opencloudos/9/isos/x86_64/OpenCloudOS-9-x86_64-DVD.iso ``` #### 启动安装程序 创建可启动介质(如 USB 驱动器),并将上述ISO刻录进去;随后重启计算机进入BIOS设置引导顺序优先选择此USB设备以加载LiveCD模式下的图形化安装界面。 #### 进行安装 遵循屏幕提示完成分区布局规划、网络参数设定以及用户账户建立等一系列初始化步骤直至结束整个过程。 ### 系统要求 针对不同应用场景和个人偏好,以下是建议性的最小规格表供参考: | 架构 | CPU (GHz) | RAM (GB)| 存储空间(GB) | | --- | --- | --- | ---| |x86_64| 2 GHz 或更快处理器 | 至少 4 GB | 不小于 20 GB 可用硬盘| 对于生产环境中运行关键业务应用,则需适当提高资源配置标准,具体数值取决于实际负载情况而定。
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Hann Yang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值