Recipes
Recipes
Compile-checked patterns for what an application needs beyond the framework: HTTP layers, clients, tests, authorization and migration from another framework.
Each recipe is a complete, working piece of code with the crate versions it was built against. Where a page says it ran, the behaviour quoted was observed; where it says it was only compiled or read, the page says which.
HTTP
- Serve static files
- Compress responses
- Security headers and CSRF
- Sessions with tower-sessions
- Cookies with tower-cookies
- Request IDs
- Access log
- Error reporting with Sentry
- Localised responses with Fluent
Clients and data
- A client as a provider
- A MongoDB ODM over the injected client
- Explicit transactions with SQLx
- A mailer over lettre
- Object storage over the AWS SDK