Refactoring to Rust MEAP V08
Lily Mara, Joel Holmes
Get the speed and reliability of Rust libraries, functions, and high-performance features through incremental adoption without rewriting your codebase from scratch.
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
Refactoring to Rust teaches you how to take advantage of Rust’s easy-to-use interoperating mechanisms. Learn practical code-mixing techniques like embedding Rust libraries into apps written in other languages. This practical guide emphasises techniques for incrementally refactoring performance-critical code to Rust while keeping the rest of your application in its original language.
Chapters
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 Asyncronous Python with Rust
9 WebAssembly for refactoring JavaScript
10 WebAssembly interface for refactoring (almost) anything
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
Refactoring to Rust teaches you how to take advantage of Rust’s easy-to-use interoperating mechanisms. Learn practical code-mixing techniques like embedding Rust libraries into apps written in other languages. This practical guide emphasises techniques for incrementally refactoring performance-critical code to Rust while keeping the rest of your application in its original language.
Chapters
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 Asyncronous Python with Rust
9 WebAssembly for refactoring JavaScript
10 WebAssembly interface for refactoring (almost) anything
Categories:
Year:
2024
Edition:
All 10 chapters
Publisher:
Manning Publications
Language:
english
Pages:
363
File:
PDF, 6.03 MB
IPFS:
,
english, 2024