File tree Expand file tree Collapse file tree 2 files changed +60
-1
lines changed
Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 1+ # Rust
2+
3+ ## 安装
4+
5+ > https://blog.csdn.net/qq_41879343/article/details/104802548
6+
7+ 官方安装教程:https://doc.rust-lang.org/nightly/book/ch01-01-installation.html 需要有代理
8+
9+ 国内安装:
10+
11+ ``` shell
12+ # 第一步:加入中国科技大学网络镜像代理
13+ # 注意以上命令,仅仅在本次终端生效,切换终端,仍然需要再次执行一次
14+ export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
15+ export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
16+
17+ # 第二步:执行脚本命令,完成rust安装
18+ curl https://sh.rustup.rs -sSf | sh
19+ # 在安装的时候,会让你选择安装路径,我们输入 1 (默认安装)回车
20+ # 安装成功之后,会提示:Rust is installed now. Great!
21+
22+ # 第三步:执行重新加载环境变量,使rustup命令生效
23+ source $HOME /.cargo/env
24+ rustc -V 或 rustup -v
25+ # 有提示相关说明,则生效
26+
27+ # 第四步:配置包管理镜像代理。
28+ # 在$HOME/.cargo目录下创建一个名为config的文本文件,其内容为:
29+ [source.crates-io]
30+ registry = " https://github.com/rust-lang/crates.io-index"
31+ replace-with = ' ustc'
32+ [source.ustc]
33+ registry = " git://mirrors.ustc.edu.cn/crates.io-index"
34+
35+ # 第五步:安装RSL,RLS(Rust Language Server)是官方提供的一个标准化的编辑器增强工具
36+ rustup self update # 更新rustup到最新
37+ rustup component add rls rust-analysis rust-src
38+
39+ # 第六步:安装编译GCC工具链
40+ sudo apt-get install build-essential
41+
42+
43+ ```
44+
45+ 编译遇到如下问题:
46+
47+ ```
48+ error[E0554]: `#![feature]` may not be used on the stable release channel
49+ ```
50+
51+ 解决方案https://blog.51cto.com/u_15127689/4298646
Original file line number Diff line number Diff line change @@ -149,4 +149,12 @@ Derek 制作的 *一个视频学习一门语言* 的教程系列可以帮助你
149149- [ 自信的技巧 - 伊万•约瑟夫博士 - TEDxRyersonU] ( https://www.youtube.com/watch?v=w-HYZv6HzAs ) | [ 优酷链接] ( http://v.youku.com/v_show/id_XMjgyMDQwMDc4MA==.html )
150150- [ 说流利英语的一个小技巧] ( https://www.youtube.com/watch?v=l96V7dQtq9E ) | [ 优酷链接] ( http://v.youku.com/v_show/id_XMjc2MzE0NTQ4NA==.html )
151151- [ 朱利安·特瑞雪: 怎样说话人们才会听] ( https://www.youtube.com/watch?v=eIho2S0ZahI ) | [ B 站链接] ( http://www.bilibili.com/video/av2915315/ )
152- - [ Sia - Chandelier (Official Video)] ( https://www.youtube.com/watch?v=2vjPBrBU-TM ) | [ 优酷链接] ( http://v.youku.com/v_show/id_XMjgyMDQxMjMwNA==.html )
152+ - [ Sia - Chandelier (Official Video)] ( https://www.youtube.com/watch?v=2vjPBrBU-TM ) | [ 优酷链接] ( http://v.youku.com/v_show/id_XMjgyMDQxMjMwNA==.html )
153+
154+
155+
156+
157+
158+ > Done is better than perfect.
159+ >
160+ > How you spend every day is how you spend your life.
You can’t perform that action at this time.
0 commit comments