
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Refactoring to Rust
About this book
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 author
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.
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 author
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.
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Refactoring to Rust by Lily Mara,Joel Holmes in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over one million books available in our catalogue for you to explore.
Information
Table of contents
- Refactoring to Rust
- copyright
- contents
- dedication
- preface
- acknowledgments
- about this book
- about the authors
- about the cover illustration
- 1 Why refactor to Rust
- 2 An overview of Rust
- 3 Introduction to C FFI and unsafe Rust
- 4 Advanced FFI
- 5 Structuring Rust libraries
- 6 Integrating with dynamic languages
- 7 Testing your Rust integrations
- 8 Asynchronous Python with Rust
- 9 WebAssembly for refactoring JavaScript
- 10 WebAssembly interface for refactoring