项目 / rust-lang/rust-by-example
rust-lang/rust-by-example
行业推荐
语言 Handlebars标签 —数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24
一段话介绍
Learn Rust with examples (Live code editor included)
本站整理,非 GitHub 官方 description。
官方 description(GitHub API 原样)Learn Rust with examples (Live code editor included)
8,136累计星
1,571Fork
—峰值日增
0上榜次数
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
智能题库与自动阅卷
适配系统:考试系统、题库系统 · 得分 1.3
提供组卷、作答与自动评分链路,可嵌入考试系统降低教师批改成本。
更多信息
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
特点或设计要点
在线阅读是最直接的入口。本地构建使用 mdbook;仓库的翻译目录可通过语言环境变量生成对应版本。源文说明离线可以阅读正文,但运行示例需要联网。采用 Apache 2.0 或 MIT 许可。
局限和适用边界
该项目构建依赖 mdbook,翻译资源需位于 po 目录,若 gettext 预处理器缺失则可选,可通过语言环境变量指定翻译。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
GitHub 项目主页介绍
来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 2,727 字节。
# Rust By Example
[](https://github.com/rust-lang/rust-by-example/actions)
Learn Rust with examples (Live code editor included)
## Using
If you'd like to read Rust by Example, you can visit <https://doc.rust-lang.org/rust-by-example/>
to read it online.
If you'd like to read it locally, [install Rust], and then:
```bash
git clone https://github.com/rust-lang/rust-by-example
cd rust-by-example
cargo install mdbook
mdbook build
mdbook serve
```
[install Rust]: https://www.rust-lang.org/tools/install
To be able to run the examples, you must be connected to the internet; you can
read all content offline, however!
**The following warnings can be ignored safely.**
```text
WARN The command `mdbook-gettext` for preprocessor `gettext` was not found, but is marked as optional.
```
### Using translated version
If there is a translated resource in `po/` directory, it can be specified through `MDBOOK_BOOK__LANGUAGE` like below:
```bash
git clone https://github.com/rust-lang/rust-by-example
cd rust-by-example
cargo install mdbook
MDBOOK_BOOK__LANGUAGE=ja mdbook build
MDBOOK_BOOK__LANGUAGE=ja mdbook serve
```
## Contributing
Please see the [CONTRIBUTING.md] file for more details.
[CONTRIBUTING.md]: https://github.com/rust-lang/rust-by-example/blob/master/CONTRIBUTING.md
## Translating
Please see the [TRANSLATING.md] file for more details.
[TRANSLATING.md]: https://github.com/rust-lang/rust-by-example/blob/master/TRANSLATING.md
### Translating guide for each languages
* Japanese/日本語: [TRANSLATING_JA.md]
[TRANSLATING_JA.md]: https://github.com/rust-lang/rust-by-example/blob/master/TRANSLATING_JA.md
* Chinese/中文: [TRANSLATING_ZH.md]
[TRANSLATING_ZH.md]: https://github.com/rust-lang/rust-by-example/blob/master/TRANSLATING_ZH.md
## Translations to other languages
* [Bulgarian](https://github.com/kberov/rust-by-example-bg)
* [French](https://github.com/Songbird0/FR_RBE)
* [Russian](https://github.com/ruRust/rust-by-example)
* [Vietnamese](https://github.com/EyesCrypto-Insights/rust-by-example-vn)
* [Portuguese](https://github.com/nazarepiedady/rust-com-exemplos)
## License
Rust by Example is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
<http://www.apache.org/licenses/LICENSE-2.0>)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
<http://opensource.org/licenses/MIT>)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in Rust by Example by you, as defined in the Apache-2.0 license, shall be
dually licensed as above, without any additional terms or conditions.