Rust Template
Template for Rust projects @okp4.
Purpose & Philosophy
This repository holds the template for building Rust projects with a consistent set of standards accross all OKP4 projects. We are convinced that the quality of the code depends on clear and consistent coding conventions, with an automated enforcement (CI).
This way, the template promotes:
- the use of conventional commits, semantic versionning and semantic releasing which automates the whole package release workflow including: determining the next version number, generating the release notes, and publishing the artifacts (project tarball, docker images, etc.)
- unit testing
- linting via rust-clippy
- formatting via rustfmt
- a uniform way of building via cargo-make
How to use
🚨 do not fork this repository as it is a template repository
- Click on Use this template
- Give a name to your project
- Wait until the first run of CI finishes
- Clone your new project and happy coding!
Cargo.toml
file.
Prerequisites
Be sure you have Rust properly installed with cargo-make.
Build
cargo make