The Rust Spellbook (early access)

The Rust Spellbook (early access)

$29.95

Deepen your wizardry with hundreds of tips, tricks, techniques, and tactics for writing better Rust programs.

Add To Cart

Who is this book for?

Rust programmers at any level who are ready to go beyond the basics and become more productive and effective.

What problem does it solve?

Rust is great, but it’s also a lot. There’s so much in Rust, it can feel like you’ll never learn it all. The Rust Spellbook is your key to just the stuff you need to know.

We’ll go beyond the tutorials and toy examples to learn how to get the most out of Rust’s most powerful features, such as types, iterators, and patterns. We’ll explore the rich world of the standard library, along with tips, tricks, and techniques that Rust wizards use to write elegant, idiomatic programs.

What will I learn?

  • Cargo: understand workspaces, features, dependency management, and build graph analysis.
  • Safety: use checked arithmetic methods, rounding, and overflow-safe conversions.
  • Design: create flexible crates with scopes, preludes, editions, examples, and doctests.
  • Memory: go deep with ownership, layout, alignment, repr, take, and niche optimisations.
  • Enums: learn the secrets of Result and Option, if let destructuring, and_then, ok, ok_or, as_ref, and the ? operator.
  • Iterators: write idiomatic, efficient Rust code with adapters, combinators, flat_map, filter_map, from_fn, and impl Iterator.
  • Traits: master essential traits like Copy, Debug, and Drop, efficient cloning, conversions with From<T>, parsing with FromStr, and trait objects.

What do I get?

  • PDF and ePub included
  • Works on computers, tablets, phones, and ebook readers
  • Early access edition (free upgrade to the final release)
  • Free lifetime updates

Muzher Sharif, Biopharma AI/ML Engineer, GSK

“Brilliant!”

The book flows very nicely, with really clear language throughout.

Stephen Adams, Freelance Software Engineer

“Clear explanations, even for newbies!”

I've just finished reading the book and felt that it was well written and explained the concepts clearly, even for me as a newbie to Rust.

Contents

Sample chapter

The Secrets of Rust: Tools

The Secrets of Rust: Tools

$29.95