Select Topics
This section covers cross-cutting concerns that span multiple language items. Each page focuses on one topic with actionable guidelines.
- Concurrency and Races — Lock ordering, spinlock discipline, atomic usage, and critical sections.
- Defensive Programming —
Correct placement of
debug_assert!. - Error Handling — Idiomatic error propagation.
- Logging —
log-crate usage and level selection. - Memory and Resource Management — RAII-based cleanup and resource ownership.
- Performance — Hot-path complexity, copy/allocation control, and measured optimization.