Tip
Use cargo generate to create a new project from this template!
- Complete Cargo.toml with metadata for packaging (deb, rpm, binstall)
- GitHub Actions workflows (CI, CD, security audit)
- Dependabot configuration
- Standard project files (LICENSE, CODE_OF_CONDUCT.md, CONTRIBUTING.md, FUNDING.yml)
- Ready-to-use README template with badges and installation instructions
- Renovate configuration for dependency updates
- Basic Rust project structure (lib.rs and main.rs)
Install cargo-generate:
cargo install cargo-generatecargo generate ErenayDev/rust-cli-templateThe template will prompt you for:
- Project name: Your crate name
- Long description: Detailed project description
- Short description: Brief project summary
- GitHub username: Your GitHub username or organization
-
Update cliff.toml: The file is excluded from generation due to liquid syntax conflicts. You need to manually update the repository URLs in
cliff.tomlfromexample/example_repoto your actual repository. -
Configure GitHub repository: Set up your repository and enable:
- Renovate bot: https://github.com/apps/renovate/installations/select_target
- GitHub Actions (should work automatically)
-
Install development tools:
# For changelog generation (optional, excluded from template)
cargo install git-cliff
# For pre-commit hooks
pip install pre-commit
pre-commit install- Update project metadata: Review and customize:
Cargo.tomldependencies and metadataREADME.mdcontent- License and funding information
- Keywords and categories
The generated project includes:
- Cross-platform build configurations
- Package metadata for Linux distributions (deb, rpm)
- Binary installation support via cargo-binstall
- Complete CI/CD pipeline for releases
- Security audit workflow
- Contribution guidelines and code of conduct
Create feature branches:
git checkout -b feat/awesome-featureThe CI will automatically:
- Run tests and linting
- Build for multiple platforms
- Create releases when you push tags
- Audit dependencies for security issues
Created with 🩵 by ErenayDev