登录 注册
开发者工具 bookmdbookrustrust-programming-language
18,555
Stars
4,181
Forks
225
Watchers
486
Open Issues
NOASSERTION
许可证
Rust
语言
2015-12-11
创建时间
2026-10-28
最近更新

项目能做什么

Rust 编程语言官方教程与参考书。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# The Rust Programming Language

![Build Status](https://github.com/rust-lang/book/workflows/CI/badge.svg)

This repository contains the source of "The Rust Programming Language" book.

[The book is available in dead-tree form from No Starch Press][nostarch].

[nostarch]: https://nostarch.com/rust-programming-language-2nd-edition

You can also read the book for free online. Please see the book as shipped with
the latest [stable], [beta], or [nightly] Rust releases. Be aware that issues
in those versions may have been fixed in this repository already, as those
releases are updated less frequently.

[stable]: https://doc.rust-lang.org/stable/book/
[beta]: https://doc.rust-lang.org/beta/book/
[nightly]: https://doc.rust-lang.org/nightly/book/

See the [releases] to download just the code of all the code listings that appear in the book.

[releases]: https://github.com/rust-lang/book/releases

## Requirements

Building the book requires [mdBook], ideally the same version that
rust-lang/rust uses in [this file][rust-mdbook]. To get it:

[mdBook]: https://github.com/rust-lang/mdBook
[rust-mdbook]: https://github.com/rust-lang/rust/blob/HEAD/src/tools/rustbook/Cargo.toml

```bash
$ cargo install mdbook --locked --version <version_num>
```

## Building

To build the book, type:

```bash
$ mdbook build
```

The output will be in the `book` subdirectory. To check it out, open it in
your web browser.

_Firefox:_

```bash
$ firefox book/index.html                       # Linux
$ open -a "Firefox" book/index.html             # OS X
$ Start-Process "firefox.exe" .\book\index.html # Windows (PowerShell)
$ start firefox.exe .\book\index.html           # Windows (Cmd)
```

_Chrome:_

```bash
$ google-chrome book/index.html                 # Linux
$ open -a "Google Chrome" book/index.html       # OS X
$ Start-Process "chrome.exe" .\book\index.html  # Windows (PowerShell)
$ start chrome.exe .\book\index.html            # Windows (Cmd)
```

To run the tests:

```bash
$ cd packages/trpl
$ mdbook test --library-path packages/trpl/target/debug/deps
```

## Contributing

We'd love your help! Please see [CONTRIBUTING.md][contrib] to learn about the
kinds of contributions we're looking for.

[contrib]: https://github.com/rust-lang/book/blob/main/CONTRIBUTING.md

Because the book is [printed][nostarch], and because we want
to keep the online version of the book close to the print version when
possible, it may take longer than you're used to for us to address your issue
or pull request.

So far, we've been doing a larger revision to coincide with [Rust Editions](https://doc.rust-lang.org/edition-guide/). Between those larger
revisions, we will only be correcting errors. If your issue or pull request
isn't strictly fixing an error, it might sit until the next time that we're
working on a large revision: expect on the order of months or years. Thank you
for your patience!

### Translations

We'd love help translating the book! See the [Translations] label to join in
efforts t
阅读完整原文

商业机会分析 AI 生成

交互式 Rust 在线实训与代码沙箱平台

产品构想基于官方 Book 的章节体系,补充在线可运行的代码断点、逐步内存分析(可视化借用检查器)以及章节配套练习题库。
核心功能章节概念可视化(生命周期/栈堆分配)、内置 WebAssembly/Rust 沙箱执行环境、每章针对性 LeetCode 式过关测试题、学习进度追踪
目标用户零基础或转语言学习 Rust 的独立开发者、自学者
难度/周期中等 · 1-2 个月 · 成本:轻量 Web 服务器与评测沙箱成本,月度约 $20-$50
收费模式免费开放前几章,后续高级章节实战题库与可视化调试功能采用订阅制(Freemium)或单次买断
竞争风险需要持续维护 Rust 编译器版本沙箱安全;已有 Rustlings 等免费 CLI 工具形成直接替代竞争
依据 AI推测

面向非英语受众的高质量本地化与出版物/配套视频课

产品构想依托官方 Translations 社区标签需求,针对特定语种(如中文、西语、日语)进行本土化修订,推出配套代码精讲、踩坑指南与系统化视频课程。
核心功能同步最新 Edition 的高质量中文/本地语言精译版、各章节配套工程代码解读视频、常见编译器报错速查手册与社群答疑
目标用户非英语母语的 Rust 初学者、在职进修程序员
难度/周期低至中等 · 1-3 个月 · 成本:录音/录屏工具与域名网站托管,成本极低(<$50)
收费模式付费专栏/视频课销售、知识星球或付费答疑群、纸质书版权合作分成
竞争风险需注意版权归属(仓库 License 为 NOASSERTION,商业出版需确认 No Starch Press 与官方版权条款许可)
依据 已验证事实

企业级 Rust 技能评测与转岗培训工具包

产品构想针对企业从 C++/Go/Java 转 Rust 团队,依据官方教程核心重难点提供考核系统、代码安全合规检查练习与定制化企业培训方案。
核心功能开箱即用的技能等级评测卷、常见踩坑实战案例库(并发/内存泄露场景)、员工学习进度仪表盘、团队专项答疑与代码审查指南
目标用户企业技术经理、CTO、需要技术栈转型为 Rust 的后端与系统研发团队
难度/周期中等 · 2-3 个月 · 成本:主要是题库研发与企业客户拓展时间成本,基础设施成本低
收费模式企业 B2B 培训服务费、团队 License 账号订阅(SaaS)
竞争风险B端获客周期长,对个人背景和技术背书要求极高
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
EbookFoundation/free-programming-books 中文介绍暂未生成
:books: Freely available programming books
401,420 Python
trimstray/the-book-of-secret-knowledge 中文介绍暂未生成
A collection of inspiring lists, manuals, cheatsheets, blogs
257,714 -
getify/You-Dont-Know-JS 中文介绍暂未生成
A book series (2 published editions) on the JS language.
184,843 -
krahets/hello-algo 中文介绍暂未生成
《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python
132,216 Python
justjavac/free-programming-books-zh_CN 中文介绍暂未生成
:books: 免费的计算机编程类中文书籍,欢迎投稿
119,575 -
d2l-ai/d2l-zh 中文介绍暂未生成
《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。
82,472 Python
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2015-12-11,近 30 天仍在推送,发布过 4 个 Release
社区活跃Star 18,555 / Fork 4,181 / Issue 486(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/rust-lang/book.git
cd book
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。