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

RustAPI Cookbook

Welcome to the RustAPI Architecture Cookbook. This documentation is designed to be the single source of truth for the project’s philosophy, patterns, and practical implementation details.

Note

This is a living document. As our architecture evolves, so will this cookbook.

What is this?

This is not just API documentation. This is a collection of:

  • Keynotes: High-level architectural decisions and “why” we made them.
  • Patterns: The repeated structures (like Action and Service) that form the backbone of our code.
  • Recipes: Practical, step-by-step guides for adding features, testing, and maintaining cleanliness.
  • Learning Paths: Structured progressions with real-world examples.

🚀 New: Examples Repository

Looking for hands-on learning? Check out our Examples Repository with 18 complete projects:

CategoryExamples
Getting Startedhello-world, crud-api
Authenticationauth-api (JWT), rate-limit-demo
Databasesqlx-crud, event-sourcing
AI/LLMtoon-api, mcp-server
Real-timewebsocket, graphql-api
Productionmicroservices, serverless-lambda

👉 See Learning & Examples for structured learning paths.

Visual Identity

This cookbook is styled with the RustAPI Premium Dark theme, focusing on readability, contrast, and modern “glassmorphism” aesthetics.

Quick Start