Rust Programming Cookbook Explore the latest features of Rust 2018 for building fast and secure apps
Matzinger, Claus
- 出版商: Packt Publishing
- 出版日期: 2019-10-18
- 售價: $1,810
- 貴賓價: 9.5 折 $1,720
- 語言: 英文
- 頁數: 444
- 裝訂: Paperback
- ISBN: 1789530660
- ISBN-13: 9781789530667
-
相關分類:
Rust 語言
-
相關翻譯:
Rust 語言編程實戰 (Rust Programming Cookbook) (簡中版)
買這商品的人也買了...
相關主題
商品描述
Key Features
- Work through recipes featuring advanced concepts such as concurrency, unsafe code, and macros to migrate your codebase to the Rust programming language
- Learn how to run machine learning models with Rust
- Explore error handling, macros, and modularization to write maintainable code
Book Description
Rust 2018, Rust's first major milestone since version 1.0, brings more advancement in the Rust language. The Rust Programming Cookbook is a practical guide to help you overcome challenges when writing Rust code.
This Rust book covers recipes for configuring Rust for different environments and architectural designs, and provides solutions to practical problems. It will also take you through Rust's core concepts, enabling you to create efficient, high-performance applications that use features such as zero-cost abstractions and improved memory management. As you progress, you'll delve into more advanced topics, including channels and actors, for building scalable, production-grade applications, and even get to grips with error handling, macros, and modularization to write maintainable code. You will then learn how to overcome common roadblocks when using Rust for systems programming, IoT, web development, and network programming. Finally, you'll discover what Rust 2018 has to offer for embedded programmers.
By the end of the book, you'll have learned how to build fast and safe applications and services using Rust.
What you will learn
- Understand how Rust provides unique solutions to solve system programming language problems
- Grasp the core concepts of Rust to develop fast and safe applications
- Explore the possibility of integrating Rust units into existing applications for improved efficiency
- Discover how to achieve better parallelism and security with Rust
- Write Python extensions in Rust
- Compile external assembly files and use the Foreign Function Interface (FFI)
- Build web applications and services using Rust for high performance
Who this book is for
The Rust cookbook is for software developers looking to enhance their knowledge of Rust and leverage its features using modern programming practices. Familiarity with Rust language is expected to get the most out of this book.
商品描述(中文翻譯)
主要特點
- 透過包含並發性、不安全代碼和宏等高級概念的示例,將代碼庫遷移到Rust編程語言
- 學習如何使用Rust運行機器學習模型
- 探索錯誤處理、宏和模塊化,以編寫易於維護的代碼
書籍描述
Rust 2018是Rust自1.0版本以來的首個重要里程碑,為Rust語言帶來了更多進展。《Rust編程食譜》是一本實用指南,幫助您在編寫Rust代碼時克服挑戰。
這本Rust書籍涵蓋了配置Rust以適應不同環境和架構設計的示例,並提供了解決實際問題的解決方案。它還將帶您深入了解Rust的核心概念,使您能夠創建使用零成本抽象和改進的內存管理等功能的高效、高性能應用程序。隨著學習的深入,您將探索更高級的主題,包括用於構建可擴展的生產級應用程序的通道和actor,甚至掌握錯誤處理、宏和模塊化以編寫易於維護的代碼。然後,您將學習如何在系統編程、物聯網、Web開發和網絡編程中使用Rust時克服常見障礙。最後,您將發現Rust 2018為嵌入式程序員提供了什麼。
通過閱讀本書,您將學會使用Rust構建快速且安全的應用程序和服務。
您將學到什麼
- 了解Rust如何提供獨特的解決方案來解決系統編程語言的問題
- 掌握Rust的核心概念,以開發快速且安全的應用程序
- 探索將Rust單元集成到現有應用程序中以提高效率的可能性
- 發現如何通過Rust實現更好的並行性和安全性
- 使用Rust編寫Python擴展
- 編譯外部組件文件並使用外部函數接口(FFI)
- 使用Rust構建高性能的Web應用程序和服務
本書適合對象
《Rust編程食譜》適合希望提升對Rust的了解並利用其功能的軟件開發人員,並期望使用現代編程實踐。預期讀者對Rust語言有一定的熟悉程度,以獲得最大的收益。
作者簡介
Claus Matzinger is a software engineer with a very diverse background. After working in a small company maintaining code for embedded devices, he joined a large corporation to work on legacy Smalltalk applications. This led to a great interest in programming languages early on, and Claus became the CTO for a health games start-up based on Scala technology. Since then, Claus' roles have shifted toward customer-facing roles in the IoT database technology start-up, Crate IO (creators of CrateDB), and, most recently, Microsoft. There, he hosts a podcast, writes code together with customers, and blogs about the solutions arising from these engagements. For more than 5 years, Claus has been implementing software to help customers innovate, achieve, and maintain success.
作者簡介(中文翻譯)
Claus Matzinger 是一位具有非常多元化背景的軟體工程師。在一家小公司維護嵌入式設備的程式碼後,他加入了一家大型企業,從事遺留的 Smalltalk 應用程式開發工作。這引起了他對程式語言的濃厚興趣,並使 Claus 成為一家基於 Scala 技術的健康遊戲初創公司的首席技術官。此後,Claus 的角色轉向面向客戶的職位,先是在物聯網資料庫技術初創公司 Crate IO(CrateDB 的創造者)工作,最近則轉到了 Microsoft。在那裡,他主持一個播客節目,與客戶一起編寫程式碼,並在博客中介紹這些合作帶來的解決方案。五年多來,Claus 一直在實施軟體,幫助客戶創新、實現和維護成功。
目錄大綱
- Starting off with Rust
- Going further with advanced programming
- Managing projects with cargo
- Fearless Concurrency
- Handling errors and other results
- Express yourself with macros
- Integrating Rust with Other Languages
- Safe programming for the web
- Systems programming made easy.
- Getting practical with Rust
目錄大綱(中文翻譯)
- Rust 入門
- 進階程式設計
- 使用 cargo 管理專案
- 無懼的並行處理
- 處理錯誤和其他結果
- 使用巨集表達自己
- 將 Rust 整合到其他語言中
- 安全的網頁程式設計
- 簡化系統程式設計
- 實際應用 Rust