Skip to main content
在 Manus 中运行任何 Skill
一键导入

axum

星标2
分支0
更新时间2026年5月4日 21:07

Comprehensive guide for building web applications and APIs with the axum Rust framework (by tokio-rs). Use this skill whenever the user wants to: build web servers, REST APIs, or HTTP services in Rust using axum; set up routing with path parameters, nested routers, fallbacks, or method routing; use request extractors (Path, Query, Json, Form, Bytes, String, HeaderMap, State, Extension, WebSocket, Multipart, Cookie); create response types with IntoResponse; implement middleware with middleware::from_fn or tower layers; manage application state with State and FromRef; handle errors with custom IntoResponse implementations; work with WebSocket connections for real-time features; serve Server-Sent Events (SSE); handle multipart form uploads; manage cookies (signed, private, or plain); serve static files; configure CORS, tracing, compression, timeouts, and other tower-http layers; set up graceful shutdown; migrate from axum 0.7 to 0.8; or integrate axum with tower middleware. Make sure to use this skill when the u

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly