Rust In Practice, Second Edition: A Programmers Guide to Build Rust Programs, Test Applications and Create Cargo Packages
Tim, Rick, J, Ralph, Anderson, B.
- 出版商: Gitforgits
- 出版日期: 2024-04-19
- 售價: $2,830
- 貴賓價: 9.5 折 $2,689
- 語言: 英文
- 頁數: 248
- 裝訂: Quality Paper - also called trade paper
- ISBN: 8119177762
- ISBN-13: 9788119177769
-
相關分類:
Rust 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
"Rust In Practice, Second Edition" is an updated book that builds on the previous edition's excellent foundation and is intended to help readers progress from novice to proficient Rust developers. This new edition comes with Rust 1.77 version that goes deeper into Rust's core and advanced capabilities, making it suitable for learners at all levels.
Beginning with a basic introduction to Rust syntax and semantics, the Second Edition provides a clearer and more detailed explanation of Rust's distinctive ownership model and type system.Readers will thoroughly explore control flow, error management, and Rust's main data types, laying a solid foundation for more advanced topics. The book includes additional chapters on smart pointers, sophisticated error handling techniques, and the complexities of concurrency and parallelism, which address real-world programming issues. The book covers how to incorporate asynchronous programming features into projects, how to utilize and maintain Cargo, and a more in-depth look at Rust's standard library and the external crates ecosystem.
"Rust In Practice, Second Edition" is intended to serve as both a learning tool and a reference for developing high-performance applications. It is packed with professional advice, clear explanations, and practical examples. This book will not only teach you Rust programming, but it will also help you design software that is strong, simple, efficient, and easily maintainable.
Key Learnings
- Master Cargo and its extensive command suite to streamline project builds and dependency management.
- Deepen your grasp of Rust's type system, emphasizing ownership and borrowing to efficiently manage memory.
- Utilize advanced traits and generics to create flexible, reusable software components.
- Leverage closures, iterators, and asynchronous programming for high-performance, multi-threaded applications.
- Utilize collections, enhance string operations, and execute effective I/O.
- Explore sophisticated macro usage for metaprogramming and strategies to avoid unsafe code.
- 75+ practical examples showcasing Rust's latest features and best practices.
- Apply rigorous testing methods across diverse Rust applications, with new testing frameworks and methodologies.
Table of Content
- Why Rust!
- Getting Ready with Rust Environment
- Most Essentials of Rust
- Structs
- Enums and Pattern Matching
- Exploring Ownership and Borrowing
- Cargo, Crates and Packages
- Cargo Commands
- Rust Standard Library
- Smart Pointers and Reference Cycles
商品描述(中文翻譯)
學習使用最新的 Rust 1.77 建立 Rust 程式、測試應用程式並創建自己的 Cargo 套件。
『Rust 實踐指南,第二版』是一本更新的書籍,建立在前一版的優秀基礎上,旨在幫助讀者從初學者進步為熟練的 Rust 開發者。這本新版書籍使用 Rust 1.77 版本,更深入地探索 Rust 的核心和高級功能,適合各個程度的學習者。
從基本的 Rust 語法和語義開始,第二版提供了更清晰和詳細的解釋 Rust 獨特的所有權模型和類型系統。讀者將深入探討控制流、錯誤管理和 Rust 的主要資料類型,為更高級的主題打下堅實的基礎。書中還包括關於智能指針、複雜的錯誤處理技術以及並發和平行處理的章節,解決了現實世界的程式設計問題。書籍涵蓋了如何將異步程式設計功能融入專案、如何使用和維護 Cargo,以及更深入地瞭解 Rust 的標準庫和外部套件生態系統。
『Rust 實踐指南,第二版』旨在成為學習工具和開發高效應用程式的參考。書中充滿了專業建議、清晰的解釋和實用範例。這本書不僅教授 Rust 程式設計,還幫助您設計強大、簡單、高效且易於維護的軟體。
主要學習內容:
- 掌握 Cargo 及其廣泛的命令套件,以簡化專案建置和依賴管理。
- 深入了解 Rust 的類型系統,強調所有權和借用以有效管理記憶體。
- 利用高級特性和泛型創建靈活、可重複使用的軟體元件。
- 利用閉包、迭代器和異步程式設計實現高效、多執行緒的應用程式。
- 使用集合、增強字串操作和執行有效的輸入/輸出。
- 探索複雜的巨集用法進行元程式設計,並避免不安全的程式碼。
- 75+ 個實用範例展示 Rust 的最新功能和最佳實踐。
- 在各種 Rust 應用程式中應用嚴格的測試方法,使用新的測試框架和方法論。
目錄:
1. 為什麼選擇 Rust!
2. 準備 Rust 環境
3. Rust 的基本要素
4. 結構體
5. 列舉和模式匹配
6. 探索所有權和借用
7. Cargo、套件和封裝
8. Cargo 命令
9. Rust 標準庫
10. 智能指針和引用循環
以上為翻譯結果,請確認是否符合需求。