Rust Programming By Example

Guillaume Gomez, Antoni Boucher

  • 出版商: Packt Publishing
  • 出版日期: 2018-01-12
  • 售價: $1,970
  • 貴賓價: 9.5$1,872
  • 語言: 英文
  • 頁數: 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進行快速可靠的網絡軟體來進一步學習。tokio是一個可擴展且高效的非同步IO Rust庫。在本書的過程中,您將學習Rust編程的各種功能,如SDL功能、事件循環、文件IO、著名的GTK+小部件工具包等。通過這些項目,您將了解Rust在並發性、可靠性、性能改進、泛型、宏和線程安全性方面的優勢。我們還將涵蓋Rust的一些非同步和反應式編程方面。

通過閱讀本書,您將能夠自如地在Rust中構建各種實際應用程式。

《學到什麼》
- 使用Cargo-Rust套件管理器編譯和運行Rust項目
- 使用Rust-SDL功能,如事件循環、視窗、無限循環、模式匹配等
- 使用Gtk-rs和Rust-SDL創建圖形界面
- 結合並發機制和多線程,以及線程安全和鎖
- 使用Tokio庫實現FTP協議的非同步IO堆疊