The Secrets of Rust: Tools
The Secrets of Rust: Tools
Master the world’s favourite programming language with my friendly guide to building durable Rust software.
Who is this book for?
Rust programmers at any level who want to learn how to build safe, reliable, and high-performance software.
What’s different about it?
It bridges the gap between “hello world” examples and application-scale codebases in Rust. Tutorials are great for learning the language, but building production-quality software requires a different set of skills. The Secrets of Rust: Tools shows you how to apply the full power of Rust to real-world programs that solve real user problems.
The book walks you through developing a series of practical, idiomatic, well-factored Rust programs, step by step and guided by tests. Along the way, you’ll develop the skills and habits used by professional Rust developers.
It’s not a substitute for The Rust Book, but a companion to it. Once you’ve learned some of the language fundamentals from The Book, you can start actually putting them to work with The Secrets of Rust: Tools.
Toy examples can only take you so far: the real world is complicated, and real programs need to cope with that. This book will show you how. It’s based on many years of teaching Rust to students of all backgrounds.
What will I learn?
Starting with small but useful command-line tools, we’ll gradually work up to larger applications that interact with files, services, and operating-system facilities. Along the way, we’ll build confidence and experience in key concepts like software design, testing, data modelling, and systems programming.
- Crates: design modular, friendly APIs without the paperwork.
- CLIs: write practical programs with input, output, arguments, flags, and error handling.
- Ownership: understand Rust’s safety guarantees, borrowing, references, mutability, and lifetimes.
- Files: use Rust’s standard library for reading and writing data, and handling paths, tree walking, file descriptors and modes.
- Testing: learn idiomatic Rust test patterns, practices, and libraries.
- Commands: manage processes, streams, OS interaction, and systems programming.
And when you’re ready, you can take the next step by learning with me in person, through my Mastery mentoring.
What do I get?
- PDF and ePub included
- Works on computers, tablets, phones, and ebook readers
- Free lifetime updates for new Rust versions
Can I try it risk-free?
If you don’t love the book after 30 days, just contact me for a full, no-quibble refund.
What do readers say?
Roberto Porcar, System Engineer, Data In Fact
“A valuable resource… this book stands out.”
Among the more than 20 Rust books I've purchased, this one stands out. It was a refreshing read that reminded me of the enthusiasm I felt when I first started learning Rust. I'd suggest reading it alongside the official Rust book if you are completely new to the language.
The book is packed with practical examples and it provides guidance on writing clean, efficient, reusable code. It focuses on good design principles and robust coding practices. The examples are practical and engaging, showcasing best practices for efficient coding. The author also shows how to refactor and test each project sample, and I appreciate the topics he chose and how they are broken down for better understanding. It's a valuable resource for anyone looking to learn Rust properly.
Sagar Suri, Senior Software Engineer, Netflix
“Thank you for this great book!”
I have never come across a programming book that is so simple and fun to read. I really enjoyed it.
Jakub Jarosz, Senior Software Engineer, Nginx
“Made my first steps in Rust very easy.”
The conversational style and detailed explanations really help. Thoroughly recommended!

