美文网首页
在Windows中安装Rust到自定义路径

在Windows中安装Rust到自定义路径

作者: 吾等斩去红尘时 | 来源:发表于2023-05-28 11:18 被阅读0次

设置环境变量

系统属性 > 环境变量 > 新建

RUSTUP_HOME=d:\snap\rust\rustup
CARGO_HOME=d:\snap\rust\cargo

下载程序

https://www.rust-lang.org/zh-CN/learn/get-started

安装程序

需要提前安装好GCC并根据提示安装Rust程序

rustup-init.exe

选择Y > 选择2) Customize installation > 输入x86_64-pc-windows-gnu > 多次回车后返回安装界面 > 选择1) Proceed with installation (default)

Current installation options:

   default host triple: x86_64-pc-windows-gnu
     default toolchain: stable
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation

卸载程序

rustup self uninstall

镜像加速

更新版本(rustup)

系统属性 > 环境变量 > 新建

RUSTUP_DIST_SERVER=https://rsproxy.cn
RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup

社区第三方库(crates)

d:\snap\rust\cargo\config

[source.crates-io]
# To use sparse index, change 'rsproxy' to 'rsproxy-sparse'
replace-with = 'rsproxy'

[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

相关文章

  • MongoDB学习笔记

    Windows上的安装方法: 下载,安装,可以从customer自定义安装路径后,例如我设置的安装路径为"F:\M...

  • rust环境安装(windows)

    安装 Rust 在 Windows 上,访问 https://www.rust-lang.org/zh-CN/to...

  • 如何在Linux中安装Rust编程语言

    在Linux中安装Rust编程语言 在Linux中安装Rust ``` curl --proto '=https'...

  • #0 安装和设置Mongodb

    步骤 下载mongodb 点击安装,自定义安装路径(可选步骤), 我的安装路径为 C:\mongodb 在安装路径...

  • Python 中 MongoDB 的使用

    安装 mongodb 到 mongodb 的官网下载后安装。以 Windows 下的使用为例。在安装路径 C:\P...

  • rust开发环境mingw64

    windows下rust开发环境可以选择 MSVC 或安装 MinGW + GCC 。前者需要安装 Visual ...

  • Windows安装rust

    下载安装程序 在rust[https://www.rust-lang.org/zh-CN/tools/instal...

  • Window包管理工具scoop

    自定义安装路径安装 scoop安装应用路径 目标目录是D:\Program Files\Scoop,在PowerS...

  • rust性能分析

    Rust性能分析 安装性能分析工具: 可以安装windows下的图形工具:qcachegrind 编辑Cargo....

  • mysql 8.0 解压版安装与配置

    mysql 安装 到官网下载解压版解压到本地:下载windows解压版mysql 在安装路径下创建:my.ini ...

网友评论

      本文标题:在Windows中安装Rust到自定义路径

      本文链接:https://www.haomeiwen.com/subject/mlqdedtx.html