In this article we will be looking at the best books you can buy to help you learn the basics of Rust Systems Development.
Rust is an incredibly fast systems programming language that is used by a very wide range of organizations such as
mozilla (the original creators of the language),
Programming Rust: Fast, Safe Systems Development
Programming Rust: Fast, Safe Systems Development (1st Edition) is a fantastic resource for those of you willing to pick up the relatively new language. The book explains the complexities of the language and how you can ensure your programs are free from things such as null pointer dereferences, double frees, dangling pointers and other such bugs.
Jim Blandy and
Jason Orendorff are both experienced systems programmers and are both very qualified to teach you the basics of the
Rust programming language.
What it Covers
- How Rust represents values in memory (with diagrams)
- Complete explanations of ownership, moves, borrows, and lifetimes
- Cargo, rustdoc, unit tests and how to publish your code on
crates.io, Rust’s public package repository
- High-level features like generic code, closures, collections and iterators that make Rust productive and flexible
- Concurrency in Rust: threads, mutexes, channels, and atomics, all much safer to use than in
- Unsafe code, and how to preserve the integrity of ordinary code that uses it.
Mastering Rust by
Vesa Kaihlavirta is a new book which teaches you concepts such as concurrent programming and other intermediate to advanced programming concepts. It does this by using a series of real-world examples and explanations and showing you how to create scalable and reliable programs for your organization.
What it Covers
- Implement unit testing patterns with the standard Rust tools
- Get to know the different philosophies of error handling and how to use them wisely
- Appreciate Rust’s ability to solve memory allocation problems safely without garbage collection
- Get to know how concurrency works in Rust and use concurrency primitives such as threads and message passing
- Use syntax extensions and write your own
- Create a Web application with Rocket
- Use Diesel to build safe database abstractions
This list is ultimately still growing.
Rust is a fairly new language and finding decent books that teach you the basics can be a bit of a struggle. As the language picks up in popularity we should hopefully see the number of technical books and references growing quickly. If you see any new books that you believe should be on the list then please let me know in the comments section below.