ulo
ulo
Documentation

Start here

Coming from NestJSNestJS topics, mapped

The model

Protocols

Integrations

RecipesServe static filesCompress responsesSecurity headers and CSRFSessions with tower-sessionsCookies with tower-cookiesRequest IDsAccess logError reporting with SentryLocalised responses with FluentA client as a providerA MongoDB ODM over the injected clientExplicit transactions with SQLxA mailer over lettreObject storage over the AWS SDKA CLI command with clapMocks with mockallFeature flags with OpenFeatureAuthorization with CedarMoving from axum or actix-web

Operating

Reference

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

Application

  • A CLI command with clap
  • Mocks with mockall
  • Feature flags with OpenFeature
  • Authorization with Cedar

Migration

  • Moving from axum or actix-web

Health checks

Liveness, readiness and startup probes over HTTP and gRPC, fed by checks that any module contributes.

Serve static files

Serve a directory beside the app's routes with tower-http ServeDir as a pre-dispatch layer.

On this page

HTTPClients and dataApplicationMigration