Skip to content

rustcc/RustFAQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

RustFAQ

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官方学习材料

目录

JS之父Brendan Eich发明了Rust吗?

  • Brendan Eich不是Rust的发明者,仅仅极少量地参与了Rust的开发Graydon Hoare才是, 后者最早将Rust作为个人项目进行开发
  • Brendan Eich对Rust的最大贡献,是担任Mozilla CTO期间决定资助Rust项目(fund Rust);代码方面贡献了6个提交,共计108+11=119行;Rust语法中for..in循环的in关键字是他引入的。

Did Brendan Eich create the Rust programming language?

  • 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.

在中国大陆cargo命令速度很慢,怎么办?

使用如下配置:

# 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:

# 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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •