Skip to content

Initialize Rust CLI template with CI/CD, dev tooling, and security best practices#1

Merged
1Samuel17 merged 5 commits intomainfrom
copilot/setup-rust-cli-template
Jan 31, 2026
Merged

Initialize Rust CLI template with CI/CD, dev tooling, and security best practices#1
1Samuel17 merged 5 commits intomainfrom
copilot/setup-rust-cli-template

Conversation

Copy link

Copilot AI commented Jan 29, 2026

Bootstraps a production-ready template for Rust CLI applications with modern tooling, multi-platform testing, and security hardening.

Project Structure

  • CLI Application: clap v4 with derive API, anyhow error handling, integration tests via assert_cmd
  • Build Tooling: Makefile with 12 tasks (build, test, lint, format, audit, ci), cargo config with incremental compilation
  • Code Quality: rustfmt, clippy, editorconfig for cross-editor consistency

CI/CD

  • Testing: Matrix across Ubuntu/Windows/macOS × stable/beta Rust with caching
  • Security: rustsec audit, explicit GITHUB_TOKEN permissions (contents:read/write), patched actions/download-artifact@v4.1.3
  • Releases: Cross-platform binaries via softprops/action-gh-release@v2 on tag push

Development Environment

  • Dev Container: Debian Bookworm with rust-analyzer, format-on-save, clippy integration
  • Documentation: README with quick start, CONTRIBUTING.md with guidelines, CHANGELOG.md following Keep a Changelog

Example Usage

make ci          # Run all checks (format, lint, test)
make build       # Release build
cargo run -- --name "User" --verbose

All security scans pass (CodeQL: 0 alerts, no vulnerable dependencies).

Original prompt

Set up this template repository for creating Rust CLI applications. Include dev container, GitHub actions, makefile, change log, and any other common elements for Rust CLI development


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits January 29, 2026 06:25
…ions, Makefile, and more

Co-authored-by: 1Samuel17 <165093686+1Samuel17@users.noreply.github.com>
…container, modernize release workflow

Co-authored-by: 1Samuel17 <165093686+1Samuel17@users.noreply.github.com>
Co-authored-by: 1Samuel17 <165093686+1Samuel17@users.noreply.github.com>
…itrary file write vulnerability

Co-authored-by: 1Samuel17 <165093686+1Samuel17@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up template repository for Rust CLI applications Initialize Rust CLI template with CI/CD, dev tooling, and security best practices Jan 29, 2026
Copilot AI requested a review from 1Samuel17 January 29, 2026 06:37
@1Samuel17 1Samuel17 marked this pull request as ready for review January 31, 2026 20:19
@1Samuel17 1Samuel17 merged commit 6e246df into main Jan 31, 2026
8 of 9 checks passed
@1Samuel17 1Samuel17 deleted the copilot/setup-rust-cli-template branch January 31, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants