|
|
|
|
# Rust 程序设计语言
|
|
|
|
|
|
|
|
|
|
<!-- https://github.com/rust-lang/book/blob/main/src/title-page.md -->
|
|
|
|
|
<!-- commit 56ec353290429e6547109e88afea4de027b0f1a9 -->
|
|
|
|
|
|
|
|
|
|
**本书的英文原版作者为 Steve Klabnik 和 Carol Nichols,并由 Rust 社区补充完善。本简体中文译本由 Rust 中文社区翻译。**
|
|
|
|
|
|
|
|
|
|
本书的当前版本假设你使用 Rust 1.85.0(2025-02-17 发布)或更高版本并在所有项目的 Cargo.toml 文件中通过 `edition = "2024"`将其配置为使用 Rust 2024 edition 惯用法。请查看[第一章的 “安装” 部分][install]了解如何安装和升级 Rust。
|
|
|
|
|
|
|
|
|
|
本书的英文原版 HTML 格式可以在 [https://doc.rust-lang.org/stable/book/](https://doc.rust-lang.org/stable/book/) 在线阅读;使用 `rustup` 安装的 Rust 也包含一份英文离线版,运行 `rustup docs --book` 即可打开。
|
|
|
|
|
|
|
|
|
|
本书还有一些社区 [翻译版本][translations]。(译者注:简体中文译本可以在 [https://kaisery.github.io/trpl-zh-cn/](https://kaisery.github.io/trpl-zh-cn/) 在线阅读,PDF 版本请下载 [Rust 程序设计语言 简体中文版.pdf](https://kaisery.github.io/trpl-zh-cn/Rust%20%E7%A8%8B%E5%BA%8F%E8%AE%BE%E8%AE%A1%E8%AF%AD%E8%A8%80%20%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%E7%89%88.pdf))
|
|
|
|
|
|
|
|
|
|
本书也有[由 No Starch Press 出版的纸质版和电子版][nsprust]。
|
|
|
|
|
|
|
|
|
|
[install]: ch01-01-installation.html
|
|
|
|
|
[nsprust]: https://nostarch.com/rust-programming-language-2nd-edition
|
|
|
|
|
[translations]: appendix-06-translation.html
|
|
|
|
|
|
|
|
|
|
> **🚨 想要具有互动性的学习体验吗?试试 Rust Book 的另一个版本,其中包括测验、高亮、可视化等功能**:<https://rust-book.cs.brown.edu>
|