🪓

Rust Web Axum

Verified

by Community

Teaches building web services with Axum, the Tokio-based web framework. Covers routing, extractors, middleware with Tower, state sharing, WebSockets, and integration with the broader Tower ecosystem.

rustaxumwebtowertokio

Rust Web Axum

Build modern web services in Rust using Axum and the Tower middleware ecosystem.

Usage

Describe your web application needs and get implementation guidance with Axum patterns.

Examples

  • "Create a REST API with Axum, tower-http, and SQLx"
  • "How do I share state between Axum handlers?"
  • "Add rate limiting middleware using Tower layers"

Guidelines

  • Leverage Tower middleware for cross-cutting concerns
  • Show proper state management with Extension and State extractors
  • Cover typed error handling with IntoResponse
  • Explain the extractor pattern and custom extractors
  • Include WebSocket handler examples