Rust Web Programming: A hands-on guide to developing fast and secure web apps with the Rust programming language
Original price was: $43.99.$41.22Current price is: $41.22.
Price: $43.99 - $41.22
(as of Nov 19, 2024 13:16:39 UTC – Details)
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 WarpCreate front-end components that can be injected into multiple viewsDevelop 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 WarpApply data persistence for your web apps using PostgreSQLBuild login, JWT, and config modules for your web appsServe HTML, CSS, and JavaScript from the Actix Web serverBuild unit tests and functional API tests in Postman and NewmanDeploy 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.
Publisher : Packt Publishing (February 26, 2021)
Language : English
Paperback : 394 pages
ISBN-10 : 1800560818
ISBN-13 : 978-1800560819
Item Weight : 1.5 pounds
Dimensions : 9.25 x 7.5 x 0.82 inches
4 reviews for Rust Web Programming: A hands-on guide to developing fast and secure web apps with the Rust programming language
Add a review
You must be logged in to post a review.
Original price was: $43.99.$41.22Current price is: $41.22.
Turing Complete –
Out of date, syntax errors and difficult to navigate
I’ve learned to program from many books and have over 10 years of experience in the field. This is the most poorly written programming book I’ve ever read; it’s the first time I’ve felt like my role was more around editing and less around learning.A good practice when writing a technical book like this is to place the path to the file above code snippets. This makes it clear where you need to edit code. In this book they are strewn about in the paragraphs above the code blocks making it require a good deal of mental processing to manual map the snippets to the place you have to edit. This becomes problematic when the book has two code snippets right next to each other; it becomes easy to put the code in the wrong file.Especially irritating are the syntax errors in the code examples themselves. I was eventually able to fix them but this is the last thing an author can allow in a book teaching people to code! *Some* of the errors I found include an extra garbage character in the Cargo.toml file on page 156, miss-spelled css properties on page 197, and other things I’m too tired to catalog.The combination of poor code referencing and quality issues in the code itself caused me to spend way more time just decrypting the book than paying attention to the actual content I actually cared about.Finally, the version of actix-web is 2 major versions out of date, and of course the other libraries are stale as well. While trying to debug a cryptic error I was getting from the serde crate which does JSON deserialization the solution was to … upgrade. This of course isn’t an option because the versions are now so old that doing so would break everything else and would have rendered the rest of the book unusable.I do think the author is smart. It provides good design practices and tells you how to build an app from scratch and host it the way you would do so in the real world. Someone new to rust programming can benefit from the high level overview. I did manage to get some very valuable information out of the book even if I felt I spent too much effort to get it.But my honest opinion is you are better off looking for a more modern book. The web technologies and rust crates have significantly evolved since this was published and the book hasn’t been updated. Look somewhere else.
VITA –
Very good book, explain very well. Actix framework major parts covered. But rocket framework not fully covered.For rust beginners this is one of the best book.
Christian R. –
On May 2022 in certain points out of date. Crates like actix-web and others had already proceeded breaking changes. Even the use of the composition of the older versions described in the book, can lead to some problems. This may refer on the fast changing landscape of Rust and its crates and not the quality of the book itself. But in fact there is no updated E-Book version included I can’t recommend this book in it’s actual condition.
David V Humphreys –
Excellent book, very informative.