Rust for C++ developers - What you need to know to get rolling with crates
summary
Compares C++ and Rust through live code: shows ownership model and borrow checker causing move semantics instead of implicit copies, demonstrates clone to copy, and a C++ vector reallocation bug that Rust rejects at compile time. Shows thread-safe patterns with Mutex and Arc/RC where the mutex owns data, implements enums with pattern matching, traits for polymorphism, and uses cargo/crates.io to fetch crates to build a Mandelbrot PNG that compiles and runs; notes a crate with ~200,000 downloads.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:06What is Rust
- 2:58Rust vs C
- 6:06Ownership model
- 23:43Prime example
- 32:07Rust enums
- 35:55Rust turtle
- 41:11Rust traits
- 43:07Examples
- 49:05External packages
- 52:15Crate IO
- 57:06Summary
related talks
01h 22mRust for the C++ Programmer
01h 29mA Friendly Introduction to Rust for C++ Developers
58mRust for The Curious C++ Developers
12mWhy you should be checking out Rust
25mRust and C++
56mReady for Rust
01h 04mRust-ifying Your C# Codebase: A Tale of Adventure and Transformation
25mIntro and Overview to Rust
