rust-engineer by 404kidwiz/claude-supercode-skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill rust-engineer提供专业的 Rust 开发专长,专注于内存安全的系统编程、使用 Tokio 的异步编程以及高性能后端服务。利用零成本抽象和全面的错误处理构建安全、并发的应用程序。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
需要高性能 + 内存安全?
│
├─ 是 → 项目类型?
│ │
│ ├─ 后端 API/服务 → 延迟要求?
│ │ │
│ │ ├─ <10ms → **Rust (Axum/Actix)** ✓
│ │ │ (零成本异步,开销最小)
│ │ │
│ │ └─ 10-100ms → Node.js/Go 可接受?
│ │ │
│ │ ├─ 是 → **Go/Node.js** ✓
│ │ │ (开发速度更快)
│ │ │
│ │ └─ 否 → **Rust** ✓
│ │ (内存安全至关重要)
│ │
│ ├─ 系统编程 → 替换 C/C++?
│ │ │
│ │ ├─ 是 → **Rust** ✓
│ │ │ (无需 GC 的内存安全)
│ │ │
│ │ └─ 否 → **Rust** ✓
│ │
│ ├─ CLI 工具 → 跨平台?
│ │ │
│ │ ├─ 是 → **Rust** ✓
│ │ │ (单一二进制文件,快速启动)
│ │ │
│ │ └─ 否 → 简单脚本?
│ │ │
│ │ ├─ 是 → **Bash/Python** ✓
│ │ │
│ │ └─ 否 → **Rust** ✓
│ │
│ └─ Web (高性能) → 浏览器还是服务器?
│ │
│ ├─ 浏览器 → **Rust + WASM** ✓
│ │ (图像处理,加密,游戏)
│ │
│ └─ 服务器 → 参见上面的"后端 API/服务"
│
└─ 否 → 使用针对用例优化的语言
| 方面 | Tokio | Async-std | Smol |
|---|---|---|---|
| 生态系统 | 最大 | 中等 | 小 |
| 性能 | 最快 | 快 | 轻量级 |
| 运行时开销 | ~300KB | ~200KB | ~50KB |
| HTTP 框架 | Axum, Hyper, Tonic | Tide | 无官方框架 |
| 采用情况 | 生产环境 (Discord, AWS) | 实验性 | 小众 |
| 最适合 | 生产服务 | 原型设计 | 嵌入式 |
推荐: 95% 的异步 Rust 项目使用 Tokio。
构建 HTTP API?
│
├─ 微服务 / 性能关键?
│ │
│ ├─ 是 → 需要高级路由/中间件?
│ │ │
│ │ ├─ 是 → **Axum** ✓
│ │ │ (类型安全的提取器,Tower 中间件)
│ │ │
│ │ └─ 否 → **Hyper** ✓
│ │ (底层 HTTP,最大控制)
│ │
│ └─ 否 → 快速原型设计?
│ │
│ ├─ 是 → **Actix-web** ✓
│ │ (功能齐全,宏)
│ │
│ └─ 否 → **Rocket** ✓
│ (代码生成,易于开始)
| 情况 | 决策 | 理由 |
|---|---|---|
| 遗留 C 库 | FFI 包装器 | 避免重新实现经过测试的代码 |
| 性能关键的 C 代码 | 先进行基准测试 | Rust 可能匹配或超过 C |
| 简单的 C 算法 | 用 Rust 重写 | 更易于维护 |
| 操作系统特定 API | 通过 windows-rs 进行 FFI | 无纯 Rust 替代方案 |
| 从 C/Python 调用 Rust | 使用 #[no_mangle] 进行 FFI | 支持跨语言使用 |
红色警报 → 升级到 oracle:
axum-prometheus)bindgen,用于双向 C++/Rust 互操作的 cxx每周安装数
78
仓库
GitHub 星标数
43
首次出现
Jan 24, 2026
安全审计
安装于
opencode68
gemini-cli64
codex62
claude-code61
cursor58
github-copilot57
Provides expert Rust development expertise specializing in memory-safe systems programming, async programming with Tokio, and high-performance backend services. Builds safe, concurrent applications with zero-cost abstractions and comprehensive error handling.
Need high performance + memory safety?
│
├─ YES → Project type?
│ │
│ ├─ BACKEND API/SERVICE → Latency requirements?
│ │ │
│ │ ├─ <10ms → **Rust (Axum/Actix)** ✓
│ │ │ (zero-cost async, minimal overhead)
│ │ │
│ │ └─ 10-100ms → Node.js/Go acceptable?
│ │ │
│ │ ├─ YES → **Go/Node.js** ✓
│ │ │ (faster development)
│ │ │
│ │ └─ NO → **Rust** ✓
│ │ (memory safety critical)
│ │
│ ├─ SYSTEMS PROGRAMMING → C/C++ replacement?
│ │ │
│ │ ├─ YES → **Rust** ✓
│ │ │ (memory safety without GC)
│ │ │
│ │ └─ NO → **Rust** ✓
│ │
│ ├─ CLI TOOL → Cross-platform?
│ │ │
│ │ ├─ YES → **Rust** ✓
│ │ │ (single binary, fast startup)
│ │ │
│ │ └─ NO → Simple script?
│ │ │
│ │ ├─ YES → **Bash/Python** ✓
│ │ │
│ │ └─ NO → **Rust** ✓
│ │
│ └─ WEB (HIGH-PERF) → Browser or server?
│ │
│ ├─ BROWSER → **Rust + WASM** ✓
│ │ (image processing, crypto, games)
│ │
│ └─ SERVER → See "BACKEND API/SERVICE" above
│
└─ NO → Use language optimized for use case
| Aspect | Tokio | Async-std | Smol |
|---|---|---|---|
| Ecosystem | Largest | Medium | Small |
| Performance | Fastest | Fast | Lightweight |
| Runtime overhead | ~300KB | ~200KB | ~50KB |
| HTTP frameworks | Axum, Hyper, Tonic | Tide | None official |
| Adoption | Production (Discord, AWS) | Experimental | Niche |
| Best for | Production services | Prototyping | Embedded |
Recommendation: Use Tokio for 95% of async Rust projects.
Building HTTP API?
│
├─ Microservice / Performance-critical?
│ │
│ ├─ YES → Need advanced routing/middleware?
│ │ │
│ │ ├─ YES → **Axum** ✓
│ │ │ (type-safe extractors, Tower middleware)
│ │ │
│ │ └─ NO → **Hyper** ✓
│ │ (low-level HTTP, maximum control)
│ │
│ └─ NO → Rapid prototyping?
│ │
│ ├─ YES → **Actix-web** ✓
│ │ (batteries-included, macros)
│ │
│ └─ NO → **Rocket** ✓
│ (codegen, easy to start)
| Situation | Decision | Rationale |
|---|---|---|
| Legacy C library | FFI wrapper | Avoid reimplementing tested code |
| Performance-critical C | Benchmark first | Rust may match/exceed C |
| Simple C algorithm | Rewrite in Rust | Easier to maintain |
| OS-specific APIs | FFI via windows-rs | No pure-Rust alternative |
| Calling Rust from C/Python | FFI with #[no_mangle] | Enable cross-language use |
Red Flags → Escalate tooracle:
axum-prometheus)bindgen for FFI bindings, cxx for bidirectional C++/Rust interopWeekly Installs
78
Repository
GitHub Stars
43
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode68
gemini-cli64
codex62
claude-code61
cursor58
github-copilot57
GSAP 框架集成指南:Vue、Svelte 等框架中 GSAP 动画最佳实践
3,200 周安装
PlantUML ASCII 图表生成器 - 命令行文本图表工具,支持序列图、类图、活动图
8,200 周安装
pytest-coverage:Python测试覆盖率工具,一键生成代码覆盖率报告
8,300 周安装
Markdown转HTML专业技能 - 使用marked.js、Pandoc和Hugo实现高效文档转换
8,200 周安装
GitHub Copilot 技能模板制作指南 - 创建自定义 Agent Skills 分步教程
8,200 周安装
ImageMagick图像处理技能:批量调整大小、格式转换与元数据提取
8,200 周安装
GitHub Actions 工作流规范创建指南:AI优化模板与CI/CD流程设计
8,200 周安装