Idiomatic Rust cover
welcome to this free extract from
an online version of the Manning book.
to read more
or

about this book

 

This book is a collection of design patterns and best practices for the Rust programming language, written to appeal to a broad audience of Rust programmers, from beginners to advanced developers. Some parts of this book take a theoretical approach, but most of them focus on practical use. My aim is to help you become a better Rust programmer by teaching you how to write idiomatic Rust code and use Rust’s features effectively.

This book grew out of my other book, Code Like a Pro in Rust (Manning Publications, 2024), which is a more general guide to practical Rust and may be an excellent place for beginners to start before reading this book.

The original working title of this book was Rust Design Patterns, and the inspiration for it came from the classic Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional, 1994). Although this book doesn’t translate the original book’s patterns directly into Rust, it’s a collection of Rust-specific patterns and practices inspired by the original Design Patterns. It also became clear that the book was about more than design patterns, so the title was changed to Idiomatic Rust: Code like a Rustacean to better reflect the book’s content.

How is this book different?

Who should read this book?

How this book is organized

How to read this book

About the code

liveBook discussion forum

sitemap