Refactoring to Rust

you own this product

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


pBook available Jul 8, 2025
ePub + liveBook available Jul 8, 2025
Look inside
Don’t rewrite from scratch! Improve your software speed and scalability by iteratively replacing performance-critical code with Rust

Refactoring to Rust helps you get the speed and reliability of Rust libraries, functions, and high-performance features without needing a complete rewrite of your codebase.

In Refactoring to Rust you will learn to:

  • Create Rust libraries you can call from other programming languages
  • Integrate Rust functions with code in other languages
  • Use Rust’s ownership and borrowing system to write high performance code
  • Handle errors as values using Rust’s enums
  • Minimize unnecessary memory usage with Rust’s multiple string types
  • Boost performance with Rust concurrency and async event processing
  • Create Rust HTTP services

Rust is designed to gradually replace other languages by integrating and decomposing existing code. Refactoring to Rust helps you take full advantage of this amazing feature, even if you’ve never coded in Rust before. You’ll learn practical code-mixing techniques like embedding Rust libraries into apps written in other languages.

about the technology

Upgrade your software without starting from scratch! By incrementally introducing Rust into your codebase, you can upgrade key features and improve the performance of almost any application. This book shows you how to create standalone Rust libraries, boost speed and stability by using Rust for concurrency, and create safe, memory-efficient low-level code.

about the book

Refactoring to Rust shows you exactly where and how to integrate Rust surgically into applications written in another language. You’ll start by reviewing Rust’s unique syntax and concepts, with special emphasis on unique language features like variable lifetime and ownership. Then, you’ll learn to use Rust to wrap dangerous code, call standard and custom Rust libraries, and even use WASM to run Rust in the browser.

what's inside

  • Create Rust libraries you can call from other languages
  • Handle errors as values using Rust’s enums
  • Optimize for memory efficiency
  • Boost performance with Rust concurrency

about the reader

For intermediate programmers. No Rust experience required.

about the authors

Lily Mara is a software engineer focused on high-performance Rust applications. Joel Holmes is a software developer building cloud native applications. He is the Author of Shipping Go, and Co-Author of Go in Action, Second Edition.

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

The definitive guide to refactoring to Rust.

Julien Castelain, Stayforlong
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Refactoring to Rust ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Refactoring to Rust ebook for free