Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust 程式設計語言

由 Steve Klabnik、Carol Nichols 與 Chris Krycho,以及 Rust 社群的貢獻撰寫而成

本文此版本假設你使用 Rust 1.90.0(發佈於 2025-09-18)或更新版本,並在所有專案的 Cargo.toml 檔案中設定 edition = "2024",以使用 Rust 2024 版次的慣用法。安裝或更新 Rust 的說明請見第 1 章的「安裝」,關於版次的資訊請見附錄 E

HTML 版可在 https://doc.rust-lang.org/stable/book/ 線上閱讀,也可在以 rustup 安裝 Rust 後離線閱讀;執行 rustup doc --book 即可開啟。

也提供多種社群翻譯

本書亦由 No Starch Press 提供平裝與電子書版本

🚨 想要更具互動性的學習體驗?試試看另一個版本的 Rust Book,包含:小測驗、標註、視覺化等功能https://rust-book.cs.brown.edu