axum

Build Axum 0.8 web services with routing, handlers, extractors, and middleware.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/HadiCherkaoui/opencode-config --skill axum-hadicherkaoui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axum
Source: https://github.com/HadiCherkaoui/opencode-config/tree/main/skills/axum
Command: npx skills add https://github.com/HadiCherkaoui/opencode-config --skill axum-hadicherkaoui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Axum is a powerful Rust web framework, but getting started and keeping projects consistent across teams can be challenging. This skill provides a centralized, canonical guide that covers fundamentals, state management, middleware, and advanced topics to accelerate development and reduce architectural drift.

Core Features & Use Cases

  • Clear, version-aligned guidance for routing, handlers, extractors, and middleware in Axum 0.8.
  • Detailed patterns for state, towers layers, CORS, and Leptos SSR integration workflows.
  • Real-world scenarios showing how to structure projects and apply best practices across typical Rust web services.

Quick Start

Read and follow the approved Axum guidelines before implementing routes, handlers, or middleware to ensure consistency and safety across all server code.

Frequently Asked Questions about axum

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure routing and handlers in Axum 0.8?

To structure routing and handlers in Axum 0.8, follow version-aligned guidelines that enforce compatibility requirements and best practices for building robust web services. This ensures consistency and safety across all server code.

What is the best way to manage state in a Rust web service using Axum?

State management in Axum involves applying detailed patterns for state and tower layers to maintain consistency across teams. This reduces architectural drift and accelerates development in typical Rust web services.

How do I add middleware and CORS layers in Axum?

Adding middleware and CORS layers in Axum requires using tower 0.5 and tower-http 0.6. The framework provides detailed patterns for implementing these tower layers and CORS workflows to handle requests safely.

Does Axum work with Leptos for server-side rendering?

Yes, Axum works with Leptos for server-side rendering through specific integration workflows. The skill provides guidance spanning fundamentals to advanced topics, including real-world scenarios for Leptos SSR integration.

What are the compatible versions of tower and tower-http for Axum 0.8?

The compatible versions for Axum 0.8 are tower 0.5 and tower-http 0.6. Enforcing these specific dependency requirements ensures compatibility and safety when applying middleware or building robust web apps.