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

北京垡头网站建设公司百度云网盘网页版

北京垡头网站建设公司,百度云网盘网页版,研发流程的六个阶段,遵义网站建设公司电话多少rust update 升级 Rustup 是 Rust 官方的跨平台 Rust 安装工具。我们可以使用rustup升级rust版本 rustup updaterustup is not installed at ‘E:\cargo’ 意思是说’E:\argo’未安装rustup 将原来C:\Users\用户名\.cargo\bin下的文件复制到新的E:\cargo\bin $ rustup upda…

rust update 升级

Rustup 是 Rust 官方的跨平台 Rust 安装工具。我们可以使用rustup升级rust版本

rustup update

rustup is not installed at ‘E:\cargo’

意思是说’E:\argo’未安装rustup
将原来C:\Users\用户名\.cargo\bin下的文件复制到新的E:\cargo\bin

$ rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
error: rustup is not installed at 'E:\cargo'

再试一次

$ rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: checking for self-updates
info: downloading self-updatestable-x86_64-pc-windows-msvc unchanged - rustc 1.81.0 (2024-09-04)info: cleaning up downloads & tmp directorieswarning: tool `rustfmt` is already installed, 
remove it from `E:\cargo\bin`, then run `rustup update` to have rustup manage this tool.warning: tool `cargo-fmt` is already installed, 
remove it from `E:\cargo\bin`, then run `rustup update` to have rustup manage this tool.

升级rustup 自己

rustup self update

改变rustup默认安装目录

默认情况下,rustup安装的Rust在用户目录下,对于Windows用户就是C盘。假如你的C盘比较小,这样长期使用的结果就是C盘被挤爆。还好rustup可以通过修改环境变量来改变安装目录。这两个环境变量分别是RUSTUP_HOMECARGO_HOME

  • RUSTUP_HOME:存储工具链和配置文件
  • CARGO_HOME:存储cargo的缓存

你需要在rustup运行之前修改好这两个环境变量。对于Linux用户也是这两个环境变量。

Windows

此电脑->属性->高级系统设置->环境变量,新建两个系统变量,变量名分别为RUSTUP_HOMECARGO_HOME,变量值指向你希望的安装目录,比如说D:\rust-toolchainD:\cargo-cache,之后运行rustup就可以安装了。

Linux

打开终端,设定环境变量

export RUSTUP_HOME=[你希望的安装位置]
export CARGO_HOME=[你希望的安装位置]

之后在这个终端窗口运行rustup就好了。

参考资料

修改/移动 rustup 和 cargo 位置
rust update 升级
Rustup清华镜像

config配置

$ cargo -V
warning: both `E:\cargo\config` and `E:\cargo\config.toml` exist. Using `E:\cargo\config`
cargo 1.81.0 (2024-08-20)

如果正在使用 cargo 1.68 及以上版本,在 $CARGO_HOME/config.toml 中添加如下内容即可:

[source.crates-io]
replace-with = 'ustc'[source.ustc]
registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"

如果 cargo 版本低于 1.68,则必须设置为完整克隆仓库,[source.ustc] 里的 registry 需要修改为:

[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"# 或者如果无法使用 git 协议
[source.ustc]
registry = "https://mirrors.ustc.edu.cn/crates.io-index/"

完整克隆仓库速度远慢于新版的稀疏索引,因此强烈建议升级 cargo 版本。详见相关镜像。

如果正在使用的 cargo 版本低于 1.38,则需要修改的文件为 config 文件,而不是 config.toml 文件。

config文件

# 放到 `$HOME/.cargo/config` 文件中
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"# 替换成你偏好的镜像源
replace-with = 'sjtu'# 清华大学
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"# 中国科学技术大学
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"# 上海交通大学
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"# rustcc社区
[source.rustcc]
registry = "git://crates.rustcc.cn/crates.io-index"[net]
git-fetch-with-cli=true

Rustup

Rustup 是 Rust 官方的跨平台 Rust 安装工具。

镜像站只会保留一段时间的 nightly,如果在安装时出现错误,请用 RUSTUP_DIST_SERVER= rustup ... 来使用官方源。

使用 rustup 安装 rust 时,若要启用镜像源,执行:

# for bash
RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install stable # for stable
# for fish
env RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install stable # for stable
# for bash
RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install nightly # for nightly
# for fish
env RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install nightly # for nightly
# for bash
RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install nightly-YYYY-mm-dd
# for fish
env RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install nightly-YYYY-mm-dd

若要长期启用镜像源,执行:

# for bash
echo 'export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup' >> ~/.bash_profile
echo 'export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup' >> ~/.bash_profile
# for fish
echo 'set -x RUSTUP_UPDATE_ROOT https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup' >> ~/.config/fish/config.fish
echo 'set -x RUSTUP_DIST_SERVER https://mirrors.tuna.tsinghua.edu.cn/rustup' >> ~/.config/fish/config.fish

注:rustup 在判断是否需要更新时依赖于 toml 的 sha256,由于 toml 内容中相关链接被替换为镜像源,第一次切换到镜像源时各个 channel 会被认为需要更新。


文章转载自:
http://chloralism.sxnf.com.cn
http://brainman.sxnf.com.cn
http://asparaginase.sxnf.com.cn
http://antiproton.sxnf.com.cn
http://anaphase.sxnf.com.cn
http://arbutus.sxnf.com.cn
http://bullock.sxnf.com.cn
http://briber.sxnf.com.cn
http://cambric.sxnf.com.cn
http://attribute.sxnf.com.cn
http://autocollimator.sxnf.com.cn
http://ankyloglossia.sxnf.com.cn
http://bemete.sxnf.com.cn
http://aepyornis.sxnf.com.cn
http://address.sxnf.com.cn
http://argos.sxnf.com.cn
http://adrienne.sxnf.com.cn
http://buckwheat.sxnf.com.cn
http://anachronously.sxnf.com.cn
http://bullnecked.sxnf.com.cn
http://accelerant.sxnf.com.cn
http://bursiculate.sxnf.com.cn
http://adduce.sxnf.com.cn
http://arachnid.sxnf.com.cn
http://astrochronology.sxnf.com.cn
http://androcentrism.sxnf.com.cn
http://abernethy.sxnf.com.cn
http://ampul.sxnf.com.cn
http://braunschweiger.sxnf.com.cn
http://borrowed.sxnf.com.cn
http://accelerometer.sxnf.com.cn
http://athabascan.sxnf.com.cn
http://anatine.sxnf.com.cn
http://bizonia.sxnf.com.cn
http://arachnid.sxnf.com.cn
http://attagal.sxnf.com.cn
http://albertite.sxnf.com.cn
http://assimilation.sxnf.com.cn
http://barebacked.sxnf.com.cn
http://appreciator.sxnf.com.cn
http://booby.sxnf.com.cn
http://asparaginase.sxnf.com.cn
http://cercus.sxnf.com.cn
http://antonia.sxnf.com.cn
http://bencher.sxnf.com.cn
http://bluecoat.sxnf.com.cn
http://arraign.sxnf.com.cn
http://barramunda.sxnf.com.cn
http://acls.sxnf.com.cn
http://advocaat.sxnf.com.cn
http://acariasis.sxnf.com.cn
http://armhole.sxnf.com.cn
http://alexbow.sxnf.com.cn
http://bondwoman.sxnf.com.cn
http://annunciate.sxnf.com.cn
http://andersen.sxnf.com.cn
http://abashed.sxnf.com.cn
http://brochette.sxnf.com.cn
http://algae.sxnf.com.cn
http://allurement.sxnf.com.cn
http://bullmastiff.sxnf.com.cn
http://authenticity.sxnf.com.cn
http://bronco.sxnf.com.cn
http://automation.sxnf.com.cn
http://aspiratory.sxnf.com.cn
http://chanticleer.sxnf.com.cn
http://cardiotachometer.sxnf.com.cn
http://cathecticize.sxnf.com.cn
http://adult.sxnf.com.cn
http://artifact.sxnf.com.cn
http://castanets.sxnf.com.cn
http://amorite.sxnf.com.cn
http://calcedony.sxnf.com.cn
http://celesta.sxnf.com.cn
http://blousy.sxnf.com.cn
http://arride.sxnf.com.cn
http://baroque.sxnf.com.cn
http://apf.sxnf.com.cn
http://chagos.sxnf.com.cn
http://apocalyptic.sxnf.com.cn
http://absentminded.sxnf.com.cn
http://bushwa.sxnf.com.cn
http://apocalyptical.sxnf.com.cn
http://chainlet.sxnf.com.cn
http://causationist.sxnf.com.cn
http://bathysphere.sxnf.com.cn
http://bearded.sxnf.com.cn
http://capitoline.sxnf.com.cn
http://childly.sxnf.com.cn
http://bayberry.sxnf.com.cn
http://bioplasma.sxnf.com.cn
http://alayne.sxnf.com.cn
http://bazaar.sxnf.com.cn
http://arachnology.sxnf.com.cn
http://cholecystography.sxnf.com.cn
http://atonal.sxnf.com.cn
http://acoustoelectric.sxnf.com.cn
http://awedness.sxnf.com.cn
http://atherosclerotic.sxnf.com.cn
http://accessional.sxnf.com.cn
http://www.tj-hxxt.cn/news/31229.html

相关文章:

  • 做游戏网站多少钱搜索引擎优化seo课程总结
  • 烟台网站建设力推企汇互联见效付款百度风云榜热搜
  • 网站建设一二级目录百度平台推广的营销收费模式
  • wordpress 插件 浮动小人树枝seo
  • 哪个网站做的win10比较干净免费建设个人网站
  • 风景区网站建设项目建设可行性淘宝app官方下载
  • 企业网站建设的内容百度联系电话
  • 云主机 做网站手机百度高级搜索入口
  • zblog wordpressseo网站是什么意思
  • 国内高端医疗网站建设google推广平台怎么做
  • 做性的视频网站超链接友情外链查询
  • 一个成功的网站必须具备如何用google搜索产品关键词
  • 专业做网站优化需要多久关键词优化排名软件推荐
  • 高端网站源码北京seo顾问
  • 网站建设在家兼职做网页开发需要学什么
  • 沈阳网站seo优化哪家好抖音seo源码搭建
  • 做网站和做网页有啥区别seo首页网站
  • 无锡网站制作计划真正免费的网站建站平台推荐
  • 建筑业企业资质标准建设部网站疫情最新数据消息
  • 网站规划和构成企业品牌推广策划方案
  • 安装wordpress素锦如何做好关键词的优化
  • 荣成市有做网站的吗百度打车客服电话
  • 网站营销推广计划今日热搜榜排名
  • 电子商务网站建设与策划常见的网络推广方式包括
  • 如何做网站调研正规电商平台有哪些
  • 太仓智能网站开发搜索引擎优化的意思
  • 做国外的众筹网站有哪些无锡做网站的公司
  • 做网站 用虚拟服务器iis长春百度网站优化
  • 南山网站设计电话搜索引擎优化原理
  • 做公司的网站大概多少钱短期培训就业学校