Rust Programming By Example
暫譯: Rust 程式設計實例解析

Guillaume Gomez, Antoni Boucher

  • 出版商: Packt Publishing
  • 出版日期: 2018-01-12
  • 售價: $2,000
  • 貴賓價: 9.5$1,900
  • 語言: 英文
  • 頁數: 454
  • 裝訂: Paperback
  • ISBN: 1788390636
  • ISBN-13: 9781788390637
  • 相關分類: Rust 語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Key Features

  • Implement various features of Rust to build blazingly fast applications
  • Learn to build GUI applications with using Gtk-rs
  • Explore multi-threading aspect to tackle the problems in concurrency and in distributed environments.

Book Description

Rust is an open source, safe, concurrent, practical language created by Mozilla. It runs blazingly fast, prevents segfaults, and guarantees safety. This book gets you started with essential software development by guiding you through the different aspects of Rust programming. With this approach, you can bridge the gap between learning and implementing immediately.

Beginning with an introduction to Rust, you'll learn the basic aspects like it's syntax, data types, functions, generics, control flows etc. after which you will directly jump straight onto building your first project which is Tetris game. Then you will be taken through building of graphical music player and fast and reliable networking software using tokio, the scalable and productive asynchronous IO Rust library . Over the course of this book, you will learn various features of Rust Programming like it's SDL features, Event loop, File I/O, famous GTK+ widget toolkit. Through these projects, you'll understand how well Rust performs in terms of concurrency - parallelism, reliability, Improved performance, generics, macros, and working with thread safety. we'll also cover some asynchronous and reactive programming aspects of Rust

By the end of the book, you will be comfortable in building various real-world applications in Rust.

What you will learn

  • Compile and run the Rust projects using Cargo- Rust Package manager
  • Use Rust- SDL features like Event loop, windows, Infinite loops, pattern matching and so on
  • Create graphical interface using Gtk-rs and Rust- SDL
  • Incorporate concurrency mechanism and multi- threading along with thread safety and locks
  • Implement FTP protocol using Asynchronous IO stack with Tokio library

商品描述(中文翻譯)

#### 主要特點
- 實現 Rust 的各種功能以構建極速應用程式
- 學習使用 Gtk-rs 建立 GUI 應用程式
- 探索多執行緒方面以解決並發和分散式環境中的問題

#### 書籍描述
Rust 是一種由 Mozilla 創建的開源、安全、並發、實用的語言。它運行速度極快,防止段錯誤,並保證安全性。本書將引導您通過 Rust 程式設計的不同方面,幫助您開始基本的軟體開發。透過這種方法,您可以立即縮短學習與實作之間的距離。

本書從 Rust 的介紹開始,您將學習基本的語法、資料類型、函數、泛型、控制流程等,然後直接跳入構建您的第一個專案,即俄羅斯方塊遊戲。接著,您將學習如何使用 tokio 這個可擴展且高效的非同步 I/O Rust 函式庫來構建圖形音樂播放器和快速可靠的網路軟體。在本書的過程中,您將學習 Rust 程式設計的各種功能,如 SDL 功能、事件循環、檔案 I/O、著名的 GTK+ 小工具工具包。透過這些專案,您將了解 Rust 在並發方面的表現,包括平行性、可靠性、性能提升、泛型、巨集以及執行緒安全性。我們還將涵蓋 Rust 的一些非同步和反應式程式設計方面。

在書籍結束時,您將能夠自信地使用 Rust 構建各種實際應用程式。

#### 您將學到的內容
- 使用 Cargo(Rust 套件管理器)編譯和運行 Rust 專案
- 使用 Rust 的 SDL 功能,如事件循環、視窗、無限循環、模式匹配等
- 使用 Gtk-rs 和 Rust-SDL 創建圖形介面
- 結合並發機制和多執行緒,並確保執行緒安全性和鎖
- 使用 Tokio 函式庫實現 FTP 協議的非同步 I/O 堆疊