Skip to content

Tags

On this page

Rust Environment Setup for Debian

Official Site

Rust 镜像设置

https://rsproxy.cn/

Add this to ~/.bashrc

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

Install rustup curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh

~/.cargo/config:

[source.crates-io]
replace-with = 'rsproxy'
[source.rsproxy]
registry = "https://rsproxy.cn/crates.io-index"
[registries.rsproxy]
index = "https://rsproxy.cn/crates.io-index"
[net]
git-fetch-with-cli = true

Install

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Edit this page
Last updated on 11/1/2021