rust-lang-cn
rust-by-example-cn
JavaScript

Rust By Example 中文版(包含在线代码编辑器)

Last updated Jul 2, 2026
2.0k
Stars
312
Forks
15
Issues
+2
Stars/day
Attention Score
56
Language breakdown
JavaScript 81.9%
Shell 18.1%
Files click to expand
README

通过例子学 Rust

Build Status LICENSE-MIT LICENSE-APACHE GitHub last commit GitHub contributors Locatized 100% rustwiki.org

Chinese translation of the [Rust By Example][rust-by-example]
>
- 本文档按照 Rust 文档翻译指引规范进行翻译。
- 首次于 2016-08-07 翻译完全部内容,欢迎纠正——最后更新时间 2022-01-26。

通过例子学 Rust,Rust By Example 中文版(包含在线代码编辑器)。

使用说明

如果想阅读《通过例子学 Rust》,可以直接访问 Rust 文档网的国际站点 [https://rustwiki.org/zh-CN/rust-by-example/][website-cn] 或国内站点 [https://www.rustwiki.org.cn/zh-CN/rust-by-example/][website-cn-zh]进行在线上阅读(均支持同一页面中英双语切换)。(英文阅读地址:[https://doc.rust-lang.org/rust-by-example/][website])

若想在本地阅读,请先[安装 Rust][install Rust],然后进行下面操作:

$ git clone https://github.com/rust-lang-cn/rust-by-example-cn
$ cd rust-by-example-cn
$ cargo install mdbook
$ mdbook build
$ mdbook serve

为了能够运行这些示例,你必须要连接到网络;当然你可以离线阅读所有这些内容。

如何贡献

请查看 [CONTRIBUTING.md][how-to-contribute] 文件了解详细内容。

其他语言版本

授权协议

《通过例子学 Rust》(中文版与英文版 Rust By Example 均) 使用以下两种协议的任一种进行授权:

  • Apache 2.0 授权协议,(LICENSE-APACHE 或 http://www.apache.org/licenses/LICENSE-2.0)
  • MIT 授权协议 (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
可以根据自己选择来定。

除非您有另外说明,否则您在本仓库提交的任何贡献均按上述方式进行双重许可授权,就如 Apache 2.0 协议所规定那样,而无需附加任何其他条款或条件。

[install Rust]: https://www.rust-lang.org/tools/install [rust-by-example]: https://github.com/rust-lang/rust-by-example [website]: https://doc.rust-lang.org/rust-by-example/ [website-cn]: https://rustwiki.org/zh-CN/rust-by-example/ [website-cn-zh]: https://www.rustwiki.org.cn/zh-CN/rust-by-example/ [how-to-contribute]: CONTRIBUTING.md

🔗 More in this category

© 2026 GitRepoTrend · rust-lang-cn/rust-by-example-cn · Updated daily from GitHub