Skip to content

clovu/rust-template

Repository files navigation

rust-template

A simple Rust project template to kickstart your development.

Features

  • Environment Variable Management: Uses the dotenv crate to load environment variables from a .env file.
  • Pre-commit Hooks: Configured with pre-commit to 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.

Prerequisites

  • Rust (latest stable version recommended)
  • cargo (comes with Rust)
  • pre-commit (optional, for pre-commit hooks)

Getting Started

  1. Clone the repository:

    git clone https://github.com/your-username/rust-template.git
    cd rust-template
  2. Install dependencies:

    cargo build
  3. Run the project:

    cargo run
  4. Run tests:

    cargo test

License

MIT License © 2025 Clover You

About

rust template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages