Refactoring to Rust

Refactoring to Rust book cover

Refactoring to Rust

Author(s): Lily Mara (Author)

  • Publisher: Manning Publications
  • Publication Date: 1 Aug. 2025
  • Edition: 1st
  • Language: English
  • Print length: 304 pages
  • ISBN-10: 1617299014
  • ISBN-13: 9781617299018

Book Description

Ship faster code without rewriting from scratch. Many developers hesitate to adopt Rust because of the perceived learning curve or fear of breaking trusted code. What if you could modernize performance-critical parts of your application without overhauling everything at once? By making small, targeted improvements, you can experience Rust’s speed, safety, and reliability right away, while keeping your existing systems stable and secure.

  • Incremental refactoring: Modernize critical paths while keeping trusted code stable.
  • Cross-language libraries: Call Rust from Python, JavaScript, or C for immediate speed gains.
  • Ownership and borrowing guidance: Eliminate data races, improve memory safety, sleep better at night.
  • Async and concurrency patterns: Process events at scale with predictable resource usage.
  • Error handling with enums: Replace cryptic crashes with clear, composable error flows.

Refactoring to Rust by experienced engineers Lily Mara and Joel Holmes delivers a practical, language-friendly roadmap for adding Rust libraries to existing applications. The soft-cover, 300-page guide balances clarity with depth, making advanced concepts approachable.

Through concise explanations, runnable examples, and side-by-side comparisons, the authors show exactly where Rust outshines scripting and systems languages. Each chapter targets a real refactor, from FizzBuzz pattern matching to blazing-fast HTTP services.

By the final page, readers can build production-ready Rust plugins that slash latency, cut memory waste, and future-proof critical features. The result is safer, faster software delivered with confidence.

Ideal for intermediate developers who crave performance without a risky rewrite, especially Python, JavaScript, and C maintainers.

Editorial Reviews

Review

  • No fluff. You can sense the excitement, pragmatism, and the authors’ guiding hand throughout each chapter.

Bastian Gruber, Mozilla

  • Mastering complexity doesn’t mean simplifying the problem―it means making the solution elegant and accessible. This book applies that principle beautifully.

Michal Rutka, Freelance DevOps and Cloud Solutions Architect

  • This is the Bible for understanding Rust core principles and refactoring techniques.

Sambasiva Andaluri, Oracle

From the Back Cover

From the back cover:

Refactoring to Rust teaches you to combine your favorite programming language with high-performance Rust code. Author Lily Mara introduces Rust in her easy-to-read style, clearly explaining the language’s unique syntax and concepts. You’ll augment programs with Rust hands-on with approachable examples like solving FizzBuzz with Rust’s pattern matching and gaining enormous runtime speedups to Python code. When you’re done, you’ll have mastered techniques for building Rust plugins you can apply to all kinds of existing software, from games to data tools.

About the reader:

For intermediate programmers. No Rust experience required.

View on Amazon

电子书代发PDF格式价格30我要求助
未经允许不得转载:Wow! eBook » Refactoring to Rust