Rust modelValidated dataHTTP · SQL · Cap’n Proto
Choose a boundary
Serve a typed HTTP API
Validate request bodies and response models with Axum and Tokio.
Persist your model
Use SQLx-backed CRUD with SQLite, PostgreSQL or MySQL.
Evolve your database
Plan table changes from model definitions and review the migration.
Generate a native protocol
Derive Cap’n Proto schemas, Rust bindings and validated codecs.
Start with a complete example
The HTTP + database guide connects a validated Axum endpoint to the same SQL model. Start with SQLite locally, then choose an independent PostgreSQL or MySQL driver.Add only the features you need
See Cargo features for combinations and release notes for version details. For typed agents, structured output or model routing, start with the separate RydanticAI crate.