🦀
🔷
Bridge

Rust for C# Programmers

Ownership & type system explained through the lens of managed-language idioms.

4 parts38 chapters
Start Reading

For C# / Java / Swift developers

Table of Contents

0Introduction
Part I — Foundations
1. Introduction and Motivation
2. Getting StartedEssential Keywords Reference *(optional)*
3. Built-in Types and VariablesTrue Immutability vs Record Illusions
4. Control Flow
5. Data Structures and CollectionsConstructor PatternsCollections — Vec, HashMap, and Iterators
6. Enums and Pattern MatchingExhaustive Matching and Null Safety
7. Ownership and BorrowingMemory Safety Deep DiveLifetimes Deep DiveSmart Pointers — Beyond Single Ownership
8. Crates and ModulesPackage Management — Cargo vs NuGet
9. Error HandlingCrate-Level Error Types and Result Aliases
10. Traits and GenericsGeneric ConstraintsInheritance vs Composition
11. From and Into Traits
12. Closures and IteratorsMacros Primer
Part II — Concurrency & Systems
13. ConcurrencyAsync/Await Deep Dive
14. Unsafe Rust and FFITesting
Part III — Migration & Best Practices
15. Migration Patterns and Case StudiesEssential Crates for C# DevelopersIncremental Adoption Strategy
16. Best PracticesPerformance Comparison and MigrationLearning Path and ResourcesRust Tooling Ecosystem
Capstone
17. Capstone Project: Build a CLI Weather Tool

microsoft/RustTraining — MIT & CC BY 4.0

@KhandakarRuhanv3.2.1