Explore the world of Rocket-fueled web application development and discover the power of Rust as a programming language
Key Features
- Discover solutions to the common problems faced while creating web applications with Rocket
- Learn everything about Rust, from structs and crates to generics and debugging
- Combine Rust and Rocket to create, test, and deploy a full-featured web app
Book Description
Looking for a fast, powerful, and intuitive framework to build web applications? This Rust book will help you kickstart your web development journey using the Rust language and take your Rust programming skills to the next level as you uncover the power of Rocket, a fast, flexible, and fun framework that's powered by Rust.
Web Development with Rocket wastes no time in getting you up to speed with what Rust is and how to use it. You'll discover what makes it so productive and reliable, eventually mastering all of the concepts you need to play with the Rocket framework. As you progress through the chapters, you'll develop a wide set of web development skills with Rocket. In this book, you'll be able to walk through a hands-on project, where you'll explore everything that goes into making advanced web applications and get to grips with the ins and outs of Rocket development, including error handling, Rust vectors, and wrappers. You'll also learn how to use synchronous and asynchronous programming to improve application performance and make processing user content easy.
By the end of the book, you'll have answers to all your questions about creating a web application using the Rust programming language and the Rocket web framework.
What you will learn
- Master the basics of Rust, such as its syntax, packages, and tools
- Get to grips with Rocket's tooling and ecosystem
- Extend your Rocket applications using Rust and third-party libraries
- Create a full-fledged web app with Rocket that handles user content
- Write pattern-matching logic and handle Rust object lifetimes
- Use APIs and async programming to make your apps secure and reliable
- Test your Rocket application and deploy it to production
- Containerize and scale your applications for maximum efficiency
Who This Book Is For
This web development book is for software engineers who want to learn how to use the Rocket framework to build web applications. Although not mandatory, basic knowledge of the Rust programming language will help you understand the topics covered easily.
Table of Contents
- Getting to Know the Rust Language
- Beginning Rocket Web Application
- Rocket Requests and Responses
- Building, Igniting, and Launching Rocket
- Designing a User Generated Application
- Implementing User CRUD
- Handling Error in Rust and Rocket
- Serving Static Assets and Template
- Displaying User's Post
- Uploading and Processing User Content
- Adding APIs and JSONs
- Testing your Application
- Launching Your Rocket
- Webassembly: The Future of Frontend