Rust from C/C++
This course guides the shift from C/C++ to Rust, covering types, control flow, and memory management. Explore Rust's advanced features like concurrency and cargo, and how it enables C/C++ interoperability via FFI.
Rust from C/C++
1. Introduction
2.0 - 2.4 Hello World in C, C++, Rust & Rust Syntax
3.0 Touring the Rust Language & 3.1 Primitive Types
3.2 Mutability
3.3 Primitive Type Conversion
3.4 Numeric Overflow
3.5 Control Flow
3.6 Loops
3.7 Strings
3.8 Functions and Scopes
3.9 Structures
3.10 Structure Functions
3.11 Destructors - Drop
3.12 Tuples and Destructuring
3.13 Enums
3.14 Containers
3.15 Iterators
3.16 Move by Default
3.17 Borrowing
3.18 Slices
ardanlabs.com
3.19 Memory Management & 3.19.1. C-style allocation and deallocation
3.19.2 Box - Unique Pointer
3.19.3 Rc and Arc - Shared Pointer
3.19.4 The Borrow Checker
3.19.5 Lifetimes
3.20 Concurrency & 3.20.1 Data Race Protection
3.20.2 Spawning Threads
3.20.3 Dividing Workloads
3.20.4 Scoped Threads
3.20.5 Rayon
3.21 Program Organization
3.22 Traits
3.23 Generics
3.24 Error Handling
4.0 Touring the Rust Ecosystem and 4.1 Tool Equivalencies
4.2 Unit Tests
4.3 Benchmarking
5.0 Calling C from Rust with FFI
ardanlabs.com