🦀 Functional Rust
🔴

Systems Mastery

Low-level Rust for systems programmers.

For C/C++ developers targeting embedded systems, FFI, or performance-critical code. Covers unsafe, memory layout, FFI, atomics, and concurrency primitives.

👤 C/C++ developers, embedded engineers 📚 28 examples
Start Path →
1 #699 699: Raw Pointer Basics Expert 2 #700 700: Unsafe Block Expert 3 #701 701: Unsafe Functions Expert 4 #706 706: UnsafeCell — The Foundation of Interior Mutability Expert 5 #707 707: `std::mem::transmute` — Reinterpreting Bytes Expert 6 #709 709: Unions in Rust Expert 7 #710 710: Calling C Functions with `extern "C"` Expert 8 #711 711: #[no_mangle] Exporting Rust Functions to C Expert 9 #712 712: String/CString/CStr Conversion for FFI Expert 10 #713 713: `#[repr(C)]` Structs for FFI Interop Expert 11 #714 714: FFI Callbacks — Passing Rust Functions to C Expert 12 #716 716: Custom Global Allocator with #[global_allocator] Master 13 #717 717: Volatile Memory Reads and Writes Expert 14 #718 718: Soundness, Undefined Behaviour, and Safety Invariants Master 15 #719 719: Struct of Arrays vs Array of Structs Advanced 16 #722 722: Memory Layout — repr(C), repr(packed), repr(align(N)) Expert 17 #721 721: `MaybeUninit` — Safe Uninitialized Memory Expert 18 #720 720: Cache-Friendly Iteration and Data Access Patterns Advanced 19 #723 723: Branchless Programming Advanced 20 #724 724: Zero-Copy Parsing with Byte Slices Advanced 21 #726 726: Memory Pool / Bump Allocator Pattern Expert 22 #441 441: Thread Basics — Spawn and Join Advanced 23 #443 443: Arc> — Shared Mutable State Across Threads Advanced 24 #452 452: Atomic Types — Lock-Free Operations on Single Values Advanced 25 #453 453: Memory Ordering — Acquire, Release, SeqCst Advanced 26 #454 454: Compare-and-Swap — Atomic Conditional Updates Advanced 27 #455 455: Lock-Free Stack — Concurrent Push/Pop Without Mutex Advanced 28 #732 732: Benchmarking Harness Advanced