Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust Style Guide

Apply the loaded policy pages directly.

Routing

Workflows

TaskLoad
Create or configure a Rust projectnew project workflow
Verify a reusable library releaselibrary release workflow
Investigate performanceperformance workflow
Review or refactor Rust codereview workflow

Policy Fast Paths

TaskLoad
Define a public library errorlibrary/application errors, error taxonomy, public API evolution
Handle top-level application errorslibrary/application errors, error propagation, panics
Choose enum, generic, or trait objectenum/trait selection, trait design
Add a domain ID or validated valuenewtypes, constructors, validation
Write async service codeasync runtime, task lifecycle, shutdown, logging
Add instrumentationlogging and observability
Configure formatting, lints, or testsrustfmt, Clippy, CI
Review unsafe code or macrosunsafe code and macros, public API evolution
Other Rust policy workguideline index

Core Behavior

  • Workflows own multi-step procedures and route to their policy pages.
  • Fast paths load only the directly linked owner pages.
  • Use the guideline index only when no workflow or fast path matches.
  • Select conditional pages using task descriptions in this router, the guideline index, or workflow routing.
  • After loading a conditional page, apply it only when its Activation section matches.
  • Prefer concrete Rust guidance over language tutorials.
  • Ask one focused question only when required project context is missing.