-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.md
64 lines (42 loc) · 2.65 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Rust 参考手册
> 💥 暂翻译至[模块](https://rust-reference.budshome.com/items/modules.html)一节。<br>
> 欢迎您参与,我将第一时间合并 PR。谢谢!
本书是 Rust 编程语言的主要参考。
本书并非 Rust 语言规范:可能包含特定于 `rustc` 自身的细节,因此不应作为 Rust 语言规范。Rust 语言开发团队计划在未来拿出规范文件,但目前只有本书所述。
> 💥 同步官方 nightly 版本。可[在线阅读 rust-reference.budshome.com](https://rust-reference.budshome.com),也可下载PDF、ePub。
## 状态
- 对照源码位置:https://github.com/rust-lang/reference/tree/master/src
- 每章开头有官方链接、commit hash,以及提交日期。若发现与官方不一致,欢迎 Issue 或 PR :bug:
## 依赖
- rustc (Rust 编译器);
- mdBook (安装命令:`cargo install mdbook`,若需要请[阅读 mdBook 中文文档](https://mdbook.budshome.com))。
## 构建
首先,克隆本仓库,并进入文件夹:
``` Bash
git clone https://github.com/zzy/rust-reference-zh-cn.git
cd rust-reference-zh-cn
```
其次,测试代码,并捕获编译错误:
``` Bash
mdbook test
```
最后,生成电子书:
``` Bash
mdbook build
```
默认生成 `HTML` 文档,存放在 `docs` 文件夹中。
## 贡献者 ✨
<table>
<tr>
<td align="center"><a href="https://budshome.com"><img src="src/imgs/contributors/zzy.jpg" width="100px;" alt=""/><br /><sub><b>Zhang Zhongyu</b></sub></a></td>
<td align="center"><a href="https://github.com/zzy/rust-reference-zh-cn"><img src="src/imgs/contributors/anonymous.jpg" width="100px;" alt=""/><br /><sub><b>欢迎您</b></sub></a></td>
<td align="center"><a href="https://github.com/zzy/rust-reference-zh-cn"><img src="src/imgs/contributors/anonymous.jpg" width="100px;" alt=""/><br /><sub><b>欢迎您</b></sub></a></td>
<td align="center"><a href="https://github.com/zzy/rust-reference-zh-cn"><img src="src/imgs/contributors/anonymous.jpg" width="100px;" alt=""/><br /><sub><b>欢迎您</b></sub></a></td>
<td align="center"><a href="https://github.com/zzy/rust-reference-zh-cn"><img src="src/imgs/contributors/anonymous.jpg" width="100px;" alt=""/><br /><sub><b>欢迎您</b></sub></a></td>
<td align="center"><a href="https://github.com/zzy/rust-reference-zh-cn"><img src="src/imgs/contributors/anonymous.jpg" width="100px;" alt=""/><br /><sub><b>欢迎您</b></sub></a></td>
</tr>
</table>
## 做贡献
我们欢迎各类贡献。
欢迎 fork[《Rust 参考手册》中文翻译仓库],欢迎提交问题,欢迎发送 PR。
[《Rust 参考手册》中文翻译仓库]: https://github.com/zzy/rust-reference-zh-cn