过去无可挽回,未来可以改变,可以追求的东西太多了,人才会忘了自己最|

丿情义灬绝天

园龄:4年11个月粉丝:0关注:2

📂rust
🔖rust
2024-03-10 15:53阅读: 60评论: 0推荐: 0

rust 安装及更新

安装

  1. 下载 https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
  2. 设置 Rustup 镜像
    添加path环境变量
RUSTUP_DIST_SERVER="https://rsproxy.cn"
RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
  1. 设置 crates.io 镜像, 修改配置 ~/.cargo/config,已支持git协议和sparse协议,>=1.68 版本建议使用 sparse-index,速度更快。
[source.crates-io]
replace-with = 'rsproxy-sparse'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true
  1. 参考 https://rsproxy.cn/

rustup 命令

更新

rustup update

卸载

rustup self uninstall

添加组件

rustup component add rustfmt

查看版本

rustup --version

本文作者:丿情义灬绝天

本文链接:https://www.cnblogs.com/wang-lp/p/18064273

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   丿情义灬绝天  阅读(60)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起