Skip to content
/ rust-template Public template

an opinionated template for creating new 🦀 projects

License

Notifications You must be signed in to change notification settings

NINNiT/rust-template

Repository files navigation

rust-template

AboutFeaturesDependenciesBuildingInstallationUsageConfiguration


About

rust-template is a custom, opinionated template for creating new Rust projects.

❗ The following must be changed, if you decide to use this template ❗

  • change [package] fields in Cargo.toml to match your project
  • change paths in the Dockerfile to match your project and release binary
  • change the license holder within LICENSE to match your project
  • change the banner in src/main.rs to match your project
  • generate a PAT and add it as the GH_TOKEN secret to the repository
  • possibly change the GitHub Actions workflow to match your project
  • add the renovate GitHub App to the repository if you want automated dependency updates
  • change renovate.json if you want to customize the dependency update logic. By default, it uses develop as its base branch.

You should also adhere to the conventional commits standard for commit messages, as this is used by semantic-release to determine the next version.

Features

rust

  • figment for configuration
  • tokio and async-trait for async handling
  • tracing for logging/tracing
  • eyre for error handling
  • serde for serialization/deserialization

CI/CD

  • GitHub Actions for CI/CD
  • semantic-release for versioning
  • renovate for dependency updates

Dependencies

If there are any third-party dependencies, they should be listed here.

Building

Describe how to build the project.

Installation

Describe how to install the project.

Usage

Describe how to use the project.

Configuration

[general]
log_level = "info"
show_banner = true

Describe how to configure the project.

Shoutout

Give a shoutout to any libraries or projects that inspired this one.

About

an opinionated template for creating new 🦀 projects

Resources

License

Stars

Watchers

Forks

Packages