https://github.com/rustcc/rustfaq
https://github.com/rustcc/rustfaq
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rustcc/rustfaq
- Owner: rustcc
- Created: 2019-05-10T04:56:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-22T06:38:24.000Z (over 6 years ago)
- Last Synced: 2025-07-07T19:52:19.457Z (12 months ago)
- Size: 7.81 KB
- Stars: 6
- Watchers: 16
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RustFAQ
FAQ for Rust beginners.
Rust编程语言初学者常见问答(Frequent Asked Questions, FAQ)
Before asking, please check the [Google](https://www.google.com) and [StackOverflow](https://stackoverflow.com) to search for answer, or check [the formal documents of Rust](https://www.rust-lang.org/learn)
提问前,请先养成自行搜索答案的习惯:使用搜索引擎,翻看[已有提问](https://stackoverflow.com), 或翻阅[Rust官方学习材料](https://www.rust-lang.org/zh-CN/learn)。
## 目录
- 历史类 About History
- [JS之父Brendan Eich发明了Rust吗?](#js之父brendan-eich发明了rust吗)
- [Did Brendan Eich create the Rust programming language?](#did-brendan-eich-create-the-rust-programming-language)
- 配置类 How to Config
- [在中国大陆`cargo`命令速度很慢,怎么办?](#在中国大陆`cargo`命令速度很慢,怎么办)
- [Why cargo is so slow in China Mainland, and how to improve it?](#why-cargo-is-so-slow-in-china-mainland-and-how-to-improve-it)
- 工程类
### JS之父Brendan Eich发明了Rust吗?
- [Brendan Eich](https://en.wikipedia.org/wiki/Brendan_Eich)**不是**Rust的发明者,仅仅**极少量地参与了Rust的开发**,
[Graydon Hoare](https://everipedia.org/wiki/lang_en/graydon-hoare/)才是, 后者最早将Rust作为个人项目进行开发
- Brendan Eich对Rust的最大贡献,是担任Mozilla CTO期间决定资助Rust项目(fund Rust);[代码方面贡献了6个提交](https://github.com/graydon/rust-prehistory/commits?author=BrendanEich),共计108+11=119行;Rust语法中for..in循环的in关键字是他引入的。
### Did Brendan Eich create the Rust programming language?
- [Brendan Eich](https://en.wikipedia.org/wiki/Brendan_Eich) **is not** the creator of the Rust programming
language, but [Graydon Hoare](https://everipedia.org/wiki/lang_en/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](https://github.com/graydon/rust-prehistory/commits?author=BrendanEich) to the Rust code base, the most significant change is that the `in` keyword in for..in loops is introduced by him.
### 在中国大陆`cargo`命令速度很慢,怎么办?
使用如下配置:
```toml
# 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"
```
### Why cargo is so slow in China Mainland, and how to improve it?
use this configuration:
```toml
# 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"
```