FAQ for Rust beginners. Rust编程语言初学者常见问答(Frequent Asked Questions, FAQ)
Before asking, please check the Google and StackOverflow to search for answer, or check the formal documents of Rust 提问前,请先养成自行搜索答案的习惯:使用搜索引擎,翻看已有提问, 或翻阅Rust官方学习材料。
- 历史类 About History
- 配置类 How to Config
- 工程类
- Brendan Eich不是Rust的发明者,仅仅极少量地参与了Rust的开发, Graydon Hoare才是, 后者最早将Rust作为个人项目进行开发
- Brendan Eich对Rust的最大贡献,是担任Mozilla CTO期间决定资助Rust项目(fund Rust);代码方面贡献了6个提交,共计108+11=119行;Rust语法中for..in循环的in关键字是他引入的。
- Brendan Eich is not the creator of the Rust programming language, but Graydon Hoare, Who started Rust as personal project.
- Brendan Eich's contribution to Rust is deciding to fund rust when he worked as Mozilla's CTO, he has also commited 6 commits to the Rust code base, the most significant change is that the
in
keyword in for..in loops is introduced by him.
使用如下配置:
# Put the content into ${HOME}/.cargo/config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
# replace with your favourite mirror
replace-with = 'sjtu'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"
use this configuration:
# Put the content into ${HOME}/.cargo/config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
# replace with your favourite mirror
replace-with = 'sjtu'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
[source.rustcc]
registry = "https://code.aliyun.com/rustcc/crates.io-index.git"