rust-cli

Installation
SKILL.md

Rust CLI 应用开发

基于 Command Line Book 与社区最佳实践。

Capability Boundaries

✅ 强项

  1. 命令行参数解析(clap:#[derive(Parser)] 派生式、Command::new 构建式)
  2. 标准 I/O(io::stdin/stdout/stderr、BufRead trait)
  3. 文件 I/O(File::open/create、read_to_string/write_all、BufReader/BufWriter)
  4. 路径操作(Path/PathBuf、join/exists/read_dir/canonicalize)
  5. 配置文件加载(toml/json + serde_deserialize、env 变量)
  6. 日志系统(log + env_logger/tracing crate)
  7. 终端输出(colored/ansi_term/clicolors、indicatif 进度条)
  8. 退出码(ExitCode、process::exit)
  9. 错误处理(anyhow + CLI 友好错误格式)
  10. 常用 CLI 模式(管道处理、循环读取、信号处理、进度提示)
Installs
1
GitHub Stars
1
First Seen
Jun 23, 2026
rust-cli — full-statck-skills/rust-skills