The Rust Programming Language, 3rd Edition
暫譯: Rust 程式語言(第三版)

Klabnik, Steve, Nichols, Carol, Krycho, Chris

  • 出版商: No Starch Press
  • 出版日期: 2026-03-31
  • 售價: $2,130
  • 貴賓價: 9.8$2,087
  • 語言: 英文
  • 頁數: 624
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718504446
  • ISBN-13: 9781718504448
  • 相關分類: Rust 語言
  • 海外代購書籍(需單獨結帳)

商品描述

Build stable, production-grade systems with Rust.

The Rust Programming Language, 3rd Edition, teaches you to write code that the compiler can verify, teams can maintain, and systems can evolve safely over time. Written by longtime Rust community members, this book shows you how to work effectively with Rust's type system, concurrency model, and tooling, using patterns and idioms chosen for long-term stability.

Learn how to:

  • Design programs that communicate their invariants to the compiler
  • Use ownership, lifetimes, and traits to model real-world constraints
  • Write concurrent and multithreaded code with confidence and clarity
  • Build, test, document, and refactor projects using Cargo effectively
  • Handle errors explicitly and idiomatically
  • Apply expressive pattern matching to simplify complex logic

Three substantial project chapters--focusing on a number-guessing game, a command-line tool, and a multithreaded server--demonstrate how these concepts work together in complete, real programs.

Whether you're new to Rust or already using it in production, this book helps you write code that scales safely and makes its guarantees explicit.

New to this edition:

  • Complete async programming chapter
  • Miri for analyzing unsafe code
  • Built on the Rust 2024 Edition
  • Modern Rust idioms, tooling, and practices

商品描述(中文翻譯)

使用 Rust 建立穩定的生產級系統。

Rust 程式語言(第三版) 教你如何撰寫編譯器可以驗證的程式碼、團隊可以維護的程式碼,以及系統可以隨時間安全演進的程式碼。本書由長期參與 Rust 社群的成員撰寫,展示了如何有效地使用 Rust 的類型系統、併發模型和工具,並選擇適合長期穩定性的模式和慣用法。

學習如何:

  • 設計能夠向編譯器傳達其不變性的程式

  • 使用擁有權、生命週期和特徵來建模現實世界的約束

  • 自信且清晰地撰寫併發和多執行緒的程式碼

  • 有效地使用 Cargo 建立、測試、文件化和重構專案

  • 明確且慣用地處理錯誤

  • 應用表達式模式匹配來簡化複雜邏輯


三個實質性的專案章節——專注於一個猜數字遊戲、一個命令列工具和一個多執行緒伺服器——展示了這些概念如何在完整的真實程式中協同運作。

無論你是 Rust 的新手還是已經在生產環境中使用它,本書都能幫助你撰寫安全擴展的程式碼,並明確其保證。

本版新內容:

  • 完整的非同步程式設計章節

  • 用於分析不安全程式碼的 Miri

  • 基於 Rust 2024 版

  • 現代 Rust 慣用法、工具和實踐

作者簡介

Steve Klabnik was the lead for the Rust documentation team and one of Rust's core developers. A frequent speaker and a prolific open source contributor, he previously worked on projects such as Ruby and Ruby on Rails.

Carol Nichols is a member of the Rust Crates.io Team and former member of the Rust Core Team. She's a co-founder of Integer 32, LLC, the world's first Rust-focused software consultancy. She has also organized the Rust Belt Rust Conference.

Chris Krycho is a software engineering leader with experience in avionics, developer tools, web frameworks, and more. In addition to his open source software contributions and regular public speaking, he created the New Rustacean podcast (2015-2019).

作者簡介(中文翻譯)

Steve Klabnik 是 Rust 文檔團隊的負責人,也是 Rust 的核心開發者之一。他是一位經常演講的開源貢獻者,曾參與過 Ruby 和 Ruby on Rails 等項目。

Carol Nichols 是 Rust Crates.io 團隊的成員,並曾是 Rust 核心團隊的成員。她是 Integer 32, LLC 的共同創辦人,這是全球首家專注於 Rust 的軟體顧問公司。她還組織了 Rust Belt Rust 會議。

Chris Krycho 是一位擁有航空電子、開發工具、網頁框架等經驗的軟體工程領導者。除了他的開源軟體貢獻和定期公開演講外,他還創建了 New Rustacean 播客(2015-2019)。