Rust Web Programming: A hands-on guide to developing fast and secure web apps with the Rust programming language
暫譯: Rust 網頁程式設計:使用 Rust 程式語言開發快速且安全的網頁應用程式的實作指南
Flitton, Maxwell
- 出版商: Packt Publishing
- 出版日期: 2021-02-26
- 定價: $1,460
- 售價: 8.0 折 $1,168
- 語言: 英文
- 頁數: 394
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1800560818
- ISBN-13: 9781800560819
-
相關分類:
Rust 語言、程式語言
-
其他版本:
Rust Web Programming : A hands-on guide to developing, packaging, and deploying fully functional Rust web applications, 2/e (Paperback)
買這商品的人也買了...
-
$280$238 -
$332微服務架構與實踐
-
$560$437 -
$301SpringBoot 揭秘 : 快速構建微服務體系
-
$580$458 -
$450$356 -
$880$695 -
$1,660$1,577 -
$1,000$790 -
$520$406 -
$480$379 -
$600$468 -
$1,200$948 -
$580$458 -
$520$410 -
$407站點可靠性工程(SRE)實戰
-
$580$458
商品描述
Adopt the Rust programming language by learning how to build fully functional web applications and services and address challenges relating to safety and performance
Key Features:
- Build scalable web applications in Rust using popular frameworks such as Actix, Rocket, and Warp
- Create front-end components that can be injected into multiple views
- Develop data models in Rust to interact with the database
Book Description:
Are safety and high performance a big concern for you while developing web applications?
While most programming languages have a safety or speed trade-off, Rust provides memory safety without using a garbage collector. This means that with its low memory footprint, you can build high-performance and secure web apps with relative ease.
This book will take you through each stage of the web development process, showing you how to combine Rust and modern web development principles to build supercharged web apps.
You'll start with an introduction to Rust and understand how to avoid common pitfalls when migrating from traditional dynamic programming languages. The book will show you how to structure Rust code for a project that spans multiple pages and modules. Next, you'll explore the Actix Web framework and get a basic web server up and running. As you advance, you'll learn how to process JSON requests and display data from the web app via HTML, CSS, and JavaScript. You'll also be able to persist data and create RESTful services in Rust. Later, you'll build an automated deployment process for the app on an AWS EC2 instance and Docker Hub. Finally, you'll play around with some popular web frameworks in Rust and compare them.
By the end of this Rust book, you'll be able to confidently create scalable and fast web applications with Rust.
What You Will Learn:
- Structure scalable web apps in Rust in Rocket, Actix Web, and Warp
- Apply data persistence for your web apps using PostgreSQL
- Build login, JWT, and config modules for your web apps
- Serve HTML, CSS, and JavaScript from the Actix Web server
- Build unit tests and functional API tests in Postman and Newman
- Deploy the Rust app with NGINX and Docker onto an AWS EC2 instance
Who this book is for:
This book on web programming with Rust is for web developers who have programmed in traditional languages such as Python, Ruby, JavaScript, and Java and are looking to develop high-performance web applications with Rust. Although no prior experience with Rust is necessary, a solid understanding of web development principles and basic knowledge of HTML, CSS, and JavaScript are required if you want to get the most out of this book.
商品描述(中文翻譯)
透過學習如何構建完全功能的網頁應用程式和服務,並解決與安全性和性能相關的挑戰,來採用 Rust 程式語言
主要特點:
- 使用流行框架如 Actix、Rocket 和 Warp 在 Rust 中構建可擴展的網頁應用程式
- 創建可以注入多個視圖的前端元件
- 在 Rust 中開發數據模型以與資料庫互動
書籍描述:
在開發網頁應用程式時,安全性和高性能是否是您非常關心的問題?
雖然大多數程式語言在安全性和速度之間存在權衡,但 Rust 提供了記憶體安全性而不使用垃圾回收器。這意味著,憑藉其低記憶體佔用,您可以相對輕鬆地構建高性能和安全的網頁應用程式。
本書將帶您了解網頁開發過程的每個階段,展示如何結合 Rust 和現代網頁開發原則來構建超強的網頁應用程式。
您將從 Rust 的介紹開始,了解如何避免從傳統動態程式語言遷移時的常見陷阱。書中將展示如何為跨多個頁面和模組的專案結構化 Rust 代碼。接下來,您將探索 Actix Web 框架並啟動一個基本的網頁伺服器。隨著進展,您將學習如何處理 JSON 請求,並通過 HTML、CSS 和 JavaScript 顯示來自網頁應用程式的數據。您還將能夠在 Rust 中持久化數據並創建 RESTful 服務。之後,您將為應用程式在 AWS EC2 實例和 Docker Hub 上構建自動部署過程。最後,您將嘗試一些流行的 Rust 網頁框架並進行比較。
在本書結束時,您將能夠自信地使用 Rust 創建可擴展且快速的網頁應用程式。
您將學到的內容:
- 在 Rocket、Actix Web 和 Warp 中結構化可擴展的網頁應用程式
- 使用 PostgreSQL 為您的網頁應用程式應用數據持久化
- 為您的網頁應用程式構建登錄、JWT 和配置模組
- 從 Actix Web 伺服器提供 HTML、CSS 和 JavaScript
- 在 Postman 和 Newman 中構建單元測試和功能 API 測試
- 將 Rust 應用程式與 NGINX 和 Docker 部署到 AWS EC2 實例上
本書適合誰:
這本關於 Rust 網頁程式設計的書籍適合那些曾使用傳統語言如 Python、Ruby、JavaScript 和 Java 進行編程的網頁開發人員,並希望使用 Rust 開發高性能的網頁應用程式。雖然不需要有 Rust 的先前經驗,但如果您想充分利用本書,則需要對網頁開發原則有扎實的理解,以及對 HTML、CSS 和 JavaScript 的基本知識。