CLI starter template for Rust.
- Simple CLI starer application
- Argument parsing with clap
- Error handling with anyhow
- Integration testing with assert_cmd
- Multi-platform builds and packaging with cargo-dist
- macOS and Linux builds
- Homebrew and shell installers
- Release automation with cargo-release
- Dependabot keeps Cargo dependencies and Rust toolchain up-to-date
- CI workflow (GitHub Actions)
- Format check
- Install check
- Lint with Clippy
- Run tests with cargo-nextest
- Link checking with lychee
The example application included here is distributed like a real CLI tool would be. There are several installation methods available:
brew install ladvoc/tap/rust-cli-template
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ladvoc/rust-cli-template/releases/download/v0.1.0/rust-cli-template-installer.sh | sh
cargo binstall rust-cli-template
cargo install rust-cli-template