运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install compound-eng-rust-systems
镜像加速npx clawhub@latest install compound-eng-rust-systems --registry https://cn.longxiaskill.com镜像同步中
技能文档
This skill provides comprehensive patterns and best practices for Rust development.
Core Areas
CLI Tools
- Command-line argument parsing with clap
- Interactive CLI applications
- Terminal UI development
Backend Services
- Web services with axum
- Async runtime with tokio
- REST API design patterns
Application Code
- Error handling strategies
- State management
- Configuration management
Getting Started
// Example: Basic CLI with clap use clap::{Parser};#[derive(Parser)] struct Cli { name: String, }
fn main() { let args = Cli::parse(); println!("Hello, {}!", args.name); }
Best Practices
- Error Handling: Use Result types and the ? operator
- Async Programming: Leverage tokio for concurrent operations
- Code Organization: Use modules and crates effectively