A simple Rust project template to kickstart your development.
- Environment Variable Management: Uses the
dotenvcrate to load environment variables from a.envfile. - Pre-commit Hooks: Configured with
pre-committo ensure code quality and formatting. - CI/CD Integration: Includes a GitHub Actions workflow for building, linting, and testing the project.
- Code Formatting: Enforces consistent code style with
rustfmt.
- Rust (latest stable version recommended)
- cargo (comes with Rust)
- pre-commit (optional, for pre-commit hooks)
-
Clone the repository:
git clone https://github.com/your-username/rust-template.git cd rust-template -
Install dependencies:
cargo build
-
Run the project:
cargo run
-
Run tests:
cargo test
MIT License © 2025 Clover You