Skip to content

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/clovu/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 © 2026 Clover You

About

rust template

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages