# RustAPI — 5-Line Rust APIs with OpenAPI > RustAPI trims production Rust endpoints to a 5-line starter pattern; verified 50 stars, Apache-2.0, replay tooling, and built-in OpenAPI docs at `/docs`. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash cargo rustapi new # define handlers with #[rustapi_rs::get(...)] # serve docs automatically at /docs ``` ## Intro RustAPI trims production Rust endpoints to a 5-line starter pattern; verified 50 stars, Apache-2.0, replay tooling, and built-in OpenAPI docs at `/docs`. **Best for:** Rust backend builders who want generated docs and replay/debug helpers without large framework boilerplate **Works with:** Tokio-based Rust services, OpenAPI consumers, health probes, and replay-based debugging **Setup time:** 10-20 minutes ## Main - The README shows `RustApi::auto()` collecting macro routes, generating docs, and starting a runtime, which is a concrete dev-UX claim. - Replay tooling with `cargo rustapi replay list/run/diff` makes it more than another terse Rust framework. - This is the smallest repo in the set at 50 stars, so the listing stays factual and conservative. ### FAQ - **Is it already an MCP framework?**: No. MCP appears in the roadmap; current value is API generation and replay tooling. - **What should I verify first?**: Build a hello route and open `/docs`. - **Why include a 50-star repo?**: Fresh activity and unusually concrete debugging ergonomics. ## Source & Thanks > Source: https://github.com/Tuntii/RustAPI > License: Apache-2.0 > GitHub stars: 50 · forks: 3 --- ## Quick Use ```bash cargo rustapi new # define handlers with #[rustapi_rs::get(...)] # serve docs automatically at /docs ``` ## Intro RustAPI 把生产级 Rust 接口压缩到 5 行起步模式;已核验 50 stars、Apache-2.0,并提供 replay 工具链与默认 `/docs` OpenAPI 文档入口。 **Best for:** 想用自动文档与回放调试能力减少大型框架样板代码的 Rust 后端开发者 **Works with:** 基于 Tokio 的 Rust 服务、OpenAPI 消费方、健康探针与回放式调试流程 **Setup time:** 10-20 minutes ## Main - README 真实展示了 `RustApi::auto()` 如何收集宏路由、生成文档并启动运行时,这是可核验的开发体验承诺。 - 带 `cargo rustapi replay list/run/diff` 的回放工具链,让它不只是另一个简洁语法框架。 - 它是这组里星数最小的项目,因此正文保持克制、只写已验证事实。 ### FAQ - **它现在就是 MCP 框架吗?**:不是,MCP 仍在 roadmap;当前价值是 API 生成与回放调试。 - **第一步验证什么?**:先跑一个 hello 路由,再打开 `/docs`。 - **为什么收录 50 星项目?**:因为维护新鲜,而且调试能力说明很具体。 ## Source & Thanks > Source: https://github.com/Tuntii/RustAPI > License: Apache-2.0 > GitHub stars: 50 · forks: 3 --- Source: https://tokrepo.com/en/workflows/rustapi-5-line-rust-apis-with-openapi Author: AI Open Source