rust-cli
Installation
SKILL.md
Rust CLI Development
Overview
Rust provides excellent tools for building high-performance command-line applications. This skill should be invoked when creating CLI tools that require performance, safety, or native binaries.
Core Principles
- Clap: Use clap for argument parsing
- Error Handling: Use Result and the ? operator
- Structopt: Derive CLI from structs
- Binary Focus: Focus on single-purpose tools
Preparation Checklist
- Initialize:
cargo new --bin <name> - Add clap:
cargo add clap - Plan CLI structure
- Design error handling