第 1 节 · SECTION 01
The Rust Programming Language
by Steve Klabnik, Carol Nichols, and Chris Krycho, with contributions from the Rust Community
This version of the text assumes you’re using Rust 1.98.0 (released 2026-08-20)
or later with edition = "2024" in the Cargo.toml file of all projects to
configure them to use Rust 2024 Edition idioms. See the “Installation” section
of Chapter 1 for instructions on installing or
updating Rust, and see Appendix E for information
on editions.
The HTML format is available online at
https://doc.rust-lang.org/stable/book/
and offline with installations of Rust made with rustup; run rustup doc --book to open.
Several community translations are also available.
This text is available in paperback and ebook format from No Starch Press.
🚨 Want a more interactive learning experience? Try out a different version of the Rust Book, featuring: quizzes, highlighting, visualizations, and more: https://rust-book.cs.brown.edu
来源与许可:《The Rust Programming Language》 · Steve Klabnik, Carol Nichols, Chris Krycho(及 Rust 社区) · 许可:MIT 或 Apache-2.0(双许可) · 署名:本书《The Rust Programming Language》由 Steve Klabnik、Carol Nichols、Chris Krycho 及 Rust 社区创作,Rust 项目以 MIT 或 Apache-2.0 双许可发布(https://github.com/rust-lang/book 的 COPYRIGHT 文件:Licensed under either of MIT OR Apache-2.0),来源:https://github.com/rust-lang/book 。本站忠实原样呈现;内容同步版本日期 2026-10-17,最新版本以原仓库为准。 · 核对日期:2026-10-17 (许可全文)。在线阅读全文免费开放;原文件下载需登录并满足站内规则。 返回书籍详情 →