🦀
⚙️
Bridge

Rust for C/C++ Programmers

Move semantics, RAII, FFI, embedded, no_std — everything a systems programmer needs to cross over.

3 parts33 chapters
Start Reading

For C/C++ developers

Table of Contents

0Introduction
Part I — Foundations
1. Introduction and MotivationWhy C/C++ Developers Need Rust
2. Getting Started
3. Built-in Types
4. Control Flow
5. Data Structures
6. Enums and Pattern Matching
7. Ownership and BorrowingLifetimes and Borrowing Deep DiveSmart Pointers and Interior Mutability
8. Crates and ModulesTesting Patterns
9. Error HandlingError Handling Best Practices
10. TraitsGenerics
11. From and Into Traits
12. ClosuresIterator Power Tools
13. Concurrency
14. Unsafe Rust and FFI
Part II — Deep Dives
15. no_std — Rust Without the Standard LibraryEmbedded Deep Dive
16. Case Studies: Real-World C++ to RustCase Study — Lifetime Borrowing
Part III — Best Practices & Reference
17. Best PracticesAvoiding Excessive clone()Avoiding Unchecked IndexingCollapsing Assignment PyramidsLogging and Tracing Ecosystem
18. C++ → Rust Semantic Deep Dives
19. Rust Macros: From Preprocessor to Metaprogramming

microsoft/RustTraining — MIT & CC BY 4.0

@KhandakarRuhanv3.2.1