Standard Operating Procedures ​
Updated Mar 2026Step-by-step procedures for the most critical Rust development tasks. Each SOP includes decision trees, code examples, and Mermaid diagrams.
SOP Index ​
| SOP | Description |
|---|---|
| Project Setup | Initialize Rust projects with proper structure, Cargo config, and CI |
| Ownership & Borrowing | Master the borrow checker with patterns for every situation |
| Error Handling | Result, Option, custom errors, thiserror, anyhow |
| Trait Design | Design traits, generics, bounds, and dynamic dispatch |
| Async Programming | Tokio runtime, futures, streams, and async patterns |
| Concurrency | Threads, channels, Mutex, Arc, and data parallelism |
| Unsafe Rust | When and how to use unsafe correctly |
| FFI Interop | Call C from Rust and Rust from C safely |