Skip to content

Repository files navigation

Rust Template Repository

This is a template repository for rust projects. It features the following:

Getting Started

To get started with this template, do the following:

  1. Update the repository field in Cargo.toml

  2. Ensure the desired rust version is correct in rust-toolchain.toml

  3. For each crate you add under crates/, satisfy clippy::cargo by either setting publish = false (for binaries or internal-only crates) or providing all of the following [package] fields, since CI runs clippy with -D warnings:

    • description
    • license or license_file
    • repository
    • readme
    • keywords
    • categories

    Shared values (edition, license, readme, repository) can be inherited from [workspace.package] via field.workspace = true; description, keywords, and categories are usually set per-crate.

  4. Change crate example in Justfile to your primary binary if applicable.

  5. Run ./scripts/protect-main.sh to require pull requests, passing CI, and rebase merges on main. Update REQUIRED_CHECKS in the script if you rename a workflow job.

License

This template is licensed under the MIT License.

Any contribution intentionally submitted for inclusion in this repository shall be licensed as above, without any additional terms or conditions.

About

Rust template repository

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages