相關主題
商品描述
One month. One hour a day. That's all it takes to start writing Rust code!
Learn Rust in a Month of Lunches teaches you to write super fast and super safe Rust code through lessons you can fit in your lunch break. Crystal-clear explanations and focused, relevant examples make it accessible to anyone--even if you're learning Rust as your first programming language.
By the time you're done reading Learn Rust in a Month of Lunches you'll be able to:
- Build real software in Rust
- Understand messages from the compiler and Clippy, Rust's coding coach
- Make informed decisions on the right types to use in any context
- Make sense of the Rust standard library and its commonly used items
- Use external Rust "crates" (libraries) for common tasks
- Comment and build documentation for your Rust code
- Work with crates that use async Rust
- Write simple declarative macros
- Explore test driven development in Rust
Learn Rust in a Month of Lunches is full of 24 easy-to-digest lessons that ease you into real Rust programming. You'll learn essential Rust skills you can use for everything from system programming, to web applications, and games. By the time you're done learning, you'll know exactly what makes Rust unique--and be one of the thousands of developers who say it's their best loved language!
Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.
About the technology
Learn how to create fast powerful programs in Rust in just 24 short lessons! Rust gives you modern features like a top-notch compiler, a rich ecosystem of pre-built libraries, and the same low-level performance you get with a language like C, but without the awkward syntax, complex memory management, and code safety concerns. This book guides you step by step from your first line of code.
About the book
Learn Rust in a Month of Lunches breaks down the Rust language into concise hands-on lessons designed to be completed in an hour or less. The examples are fun and easy to follow, so you'll quickly progress from zero Rust knowledge to handling async and writing your own macros. You won't even need to install Rust--the book's code samples run in the browser-based Rust Playground. There's no easier way to get started!
What's inside
- Build working Rust software
- Understand messages from the compiler and Clippy
- Use external Rust "crates" (libraries) for common tasks
- Explore test driven development in Rust
About the reader
No previous experience with Rust required.
About the author
Dave MacLeod was an educator, Korean-English translator, project controller, and copywriter before becoming a full-time Rust developer. The technical editor on this book was Jerry Kuch.
Table of Contents
1 Some basics
2 Memory, variables, and ownership
3 More complex types
4 Building your own types
5 Generics, option, and result
6 More collections, more error handling
7 Traits: Making different types do the same thing
8 Iterators and closures
9 Iterators and closures again!
10 Lifetimes and interior mutability
11 Multiple threads and a lot more
12 More on closures, generics, and threads
13 Box and Rust documentation
14 Testing and building your code from tests
15 Default, the builder pattern, and Deref
16 Const, "unsafe" Rust, and external crates
17 Rust's most popular crates
18 Rust on your computer
19 More crates and async Rust
20 A tour of the standard library
21 Continuing the tour
22 Writing your own macros
23 Unfinished projects: Projects for you to finish
24 Unfinished projects, continued
商品描述(中文翻譯)
一個月。每天一小時。這就是開始撰寫 Rust 代碼所需的全部時間!
《在午餐時間學習 Rust》教你如何通過適合午餐時間的課程來撰寫超快速且超安全的 Rust 代碼。清晰明瞭的解釋和專注、相關的範例使其對任何人都易於理解——即使你是第一次學習 Rust 作為你的第一門程式語言。
當你讀完《在午餐時間學習 Rust》時,你將能夠:
- 使用 Rust 建立真正的軟體
- 理解編譯器和 Rust 的編碼教練 Clippy 發出的訊息
- 在任何情境中做出正確的類型選擇
- 理解 Rust 標準庫及其常用項目
- 使用外部 Rust "crates"(函式庫)來完成常見任務
- 為你的 Rust 代碼撰寫註解和建立文檔
- 使用 async Rust 的 crates
- 撰寫簡單的宣告式宏
- 探索 Rust 的測試驅動開發
《在午餐時間學習 Rust》包含 24 篇易於消化的課程,幫助你逐步進入真正的 Rust 編程。你將學會從系統編程到網頁應用程式和遊戲所需的基本 Rust 技能。當你學習結束時,你將清楚了解 Rust 的獨特之處——並成為數千名開發者之一,他們表示這是他們最喜愛的語言!
購買印刷版書籍可獲得 Manning Publications 提供的免費 PDF 和 ePub 格式電子書。
關於技術
在短短 24 課中學會如何用 Rust 創建快速強大的程式!Rust 提供現代功能,如一流的編譯器、豐富的預建函式庫生態系統,以及與 C 語言相同的低階性能,但沒有尷尬的語法、複雜的記憶體管理和代碼安全問題。本書將指導你逐步從第一行代碼開始。
關於本書
《在午餐時間學習 Rust》將 Rust 語言分解為簡潔的實作課程,設計為在一小時內完成。範例有趣且易於跟隨,因此你將迅速從零基礎的 Rust 知識進步到處理 async 和撰寫自己的宏。你甚至不需要安裝 Rust——書中的代碼範例可以在基於瀏覽器的 Rust Playground 中運行。沒有比這更簡單的入門方式了!
內容概覽
- 建立可運行的 Rust 軟體
- 理解編譯器和 Clippy 的訊息
- 使用外部 Rust "crates"(函式庫)來完成常見任務
- 探索 Rust 的測試驅動開發
關於讀者
不需要有 Rust 的先前經驗。
關於作者
Dave MacLeod 曾是一名教育工作者、韓英翻譯、專案控制員和文案撰寫者,後來成為全職的 Rust 開發者。本書的技術編輯是 Jerry Kuch。
目錄
1 一些基本概念
2 記憶體、變數和所有權
3 更複雜的類型
4 建立自己的類型
5 泛型、選項和結果
6 更多集合,更多錯誤處理
7 Traits:讓不同類型執行相同的操作
8 迭代器和閉包
9 再次探討迭代器和閉包!
10 生命週期和內部可變性
11 多執行緒及更多
12 關於閉包、泛型和執行緒的更多內容
13 Box 和 Rust 文檔
14 測試和從測試中構建你的代碼
15 預設、建構者模式和 Deref
16 Const、"unsafe" Rust 和外部 crates
17 Rust 最受歡迎的 crates
18 在你的電腦上使用 Rust
19 更多 crates 和 async Rust
20 標準庫導覽
21 繼續導覽
22 撰寫自己的宏
23 未完成的專案:供你完成的專案
24 未完成的專案,續篇
作者簡介
Dave MacLeod has worked as an educator, Korean-English translator, project controller, and copywriter before becoming a full-time Rust developer.
作者簡介(中文翻譯)
Dave MacLeod 曾擔任教育工作者、韓英翻譯、專案控制員和文案撰寫人,之後成為全職的 Rust 開發者。