Bryan
deepin
2023-05-26 20:00 rust编译器可以用rustup来安装
Reply Like 0 View the author
rust编译器可以用rustup来安装
上rust官网,上面有教程。
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
一条命令搞定,然后镜像源那些可以改为国内的,
$ cat ~/.cargo/config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "https://mirrors.ustc.edu.cn/crates.io-index"
我现在用的版本
$ rustc -V
rustc 1.69.0-nightly (065852def 2023-02-13)
https://bbs.deepin.org/phone/zh/post/256701
Popular Ranking
ChangePopular Events
More
v23怎么安装clang和rust编译器