Skip to content

Repository files navigation

Rust Template

A simple Rust project template with pre-configured linting, formatting, security scanning, git hooks, and CI.

Quick Start

Install the pinned toolchain, then the project tools and dependencies:

proto use          # installs every toolchain pinned in .prototools
task install_tools # project tools + dependencies + git hooks

Day to day:

task sync          # install the exact deps in the lockfiles (after cloning or pulling)
task upgrade       # bump all deps to their latest versions and update the lockfiles

Commands

Command Description
task install_tools Install tools, dependencies and git hooks
task sync Install exact dependencies from the lockfiles
task upgrade Upgrade all dependencies to latest
task format Run cargo fmt
task lint Run clippy with -D warnings
task deadcode Check for dead code
task security Security and license checks (cargo deny)
task unused_deps Find unused dependencies (cargo machete)
task test Run tests with nextest
task test:doc Run doc tests
task build Build the project
task run_ci Run the CI pipeline locally

Toolchain versions

Every language and tool version lives in .prototools — one file, read by both proto use locally and moonrepo/setup-toolchain in CI. To upgrade a language, edit that one line.

Technologies - Libraries

About

A Rust project template

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages