后端与数据库

axum

bobmatnyc/claud…m-skills

Axum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing

  • 491 次安装
  • 78 星标
  • 收录于

安装命令

npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill axum

SKILL.md

Axum (Rust) - Production Web APIs

Overview

Axum is a Rust web framework built on Hyper and Tower. Use it for type-safe request handling with composable middleware, structured errors, and excellent testability.

Quick Start

Minimal server

✅ Correct: typed handler + JSON response

use axum::{routing::get, Json, Router};
use serde::Serialize;
use std::net::SocketAddr;