backend-rust
api-rust/ 中的 Rust/WASM 后端。使用workers-rs、用于 OpenAPI 的 utoipa 和 Supabase REST API 的高性能替代方案。本地开发端口 9999比 Python 快 10-100 倍。
📖 中文导读:api-rust/ 中的 Rust/WASM 后端。使用workers-rs、用于 OpenAPI 的 utoipa 和 Supabase REST API 的高性能替代方案。本地开发端口 9999比 Python 快 10-100 倍。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: backend-rust description: Rust/WASM backend in api-rust/. High-performance alternative using workers-rs, utoipa for OpenAPI, and Supabase REST API. Port 9999 for local dev. 10-100x faster than Python.
Skill: Backend Rust
High-performance Rust backend development for Cloudflare Workers.
Routing Logic
Analyze the user's intent and route to the appropriate workflow:
Route Development → workflows/create-route.md
- "Create a Rust endpoint for [feature]"
- "Add a route handler for [resource]"
- "Implement [endpoint] in Rust"
Model Development → workflows/create-model.md
- "Create a Rust struct for [entity]"
- "Add serde model for [data]"
- "Define types for [feature]"
Database Operations → workflows/database.md
- "Query Supabase from Rust"
- "Use the Supabase REST client"
Authentication → workflows/auth.md
- "Protect Rust endpoint"
- "Validate JWT in Rust"
Configuration Questions → context/config.md
- "How do I build the Rust backend?"
- "What's the binary size?"
- "How to optimize WASM?"
Workflows
workflows/create-route.md- Create new API endpointsworkflows/create-model.md- Define Rust structsworkflows/database.md- Supabase REST operationsworkflows/auth.md- JWT authentication
Context
context/config.md- Build and deployment configcontext/structure.md- Directory structurecontext/patterns.md- Common Rust patterns