Learn to Build Rust Programs, Test Applications and Create Your Own Cargo Packages in RustRust In Practice is an ultimate fast-paced guide for anyone looking to become a practitioner of the rust programming from day 1. This book covers everything from the basics of Rust programming to building robust and efficient applications.
Starting with the fundamentals, this book guides you through the syntax and semantics of the Rust language, including its unique ownership model and type system. You'll learn about common data types, control flow, error handling, and more.
As you progress through the book, you'll dive deeper into advanced topics such as building programs, rust libraries and crates, using the standard library, and working with external crates. You'll also learn how to write concurrent and parallel code, take advantage of Rust's built-in testing features, and use popular Rust frameworks and libraries.
The book also provides hands-on examples and exercises to help you practice and apply the concepts you've learned. By the end of this book, you'll have a solid understanding of Rust programming and be well-equipped to start building your own robust and efficient applications. With clear explanations, practical examples, and expert advice, this book will help you get an edge on Rust programming and become proficient in building and testing Rust applications, right from day one.
Key Learnings
Get well versed with cargo, different cargo commands Understanding data types, ownership, and borrowing Write flexible, efficient code with traits and generics Make use of closures, iterators, and asynchronous programming to write multi-threaded programs Utilizing collections, strings, text, input and output, macros, and avoiding unsafe codes Run code testing on different types of rust programs and applications 50+ examples covered to demonstrate every feature and functionality of rust
Table of Contents
Understanding Why Rust! Getting Ready with Rust Environment Most Essentials of Rust Structs Enums and Pattern Matching Exploring Ownership and Borrowing Cargo, Crates and Packages Cargo Commands Using Rust Standard Library My First Command Line App (CLI) Code Testing of Applications Smart Pointers and Reference Cycles
AudienceThis book is for both, newbies and programmers who wants a combined knowledge of concepts and practical guidance of using Rust in developing programs and applications. This book is written by a team of Rust professionals with an intent to contribute and return back to both industry and academic research communities.
[Do not forget to check out 'Look Inside' on thumbnail for accessing the topics and subtopics covered in this book]