No description
  • Just 71.6%
  • Rust 28.4%
Find a file Use this template
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-28 12:28:49 +02:00
simple-binary remove deprecated windows-shell setting in justfile 2026-08-28 12:28:49 +02:00
simple-library remove deprecated windows-shell setting in justfile 2026-08-28 12:28:49 +02:00
README.md update capitalization 2026-03-27 13:52:11 +01:00

AstragoDE's Rust Template

About this template

This template contains a basic Rust project with the tracing crate and a basic logger setup. It is recommended that you use the Cargo Generate crate to initialize a new project with this template.

The just command runner, Nushell and Watchexec are required for some features.

Features

  • A basic logger setup using tracing
  • A justfile configuration for using the logger

Using this template

Install Cargo Generate by running cargo install cargo-generate in your terminal.

Then run

cargo generate --git https://git.astrago.de/AstragoDE/rust-template.git

Adding the template as a favorite to Cargo Generate

To add this template as a favorite to Cargo Generate add the following snippet to your $CARGO_HOME/cargo-generate.toml file. By default this file is located at $HOME/.cargo/cargo-generate.toml. If the file does not exist, create it.

[favorites.astra]
description = "AstragoDE's Rust template."
git = "https://git.astrago.de/AstragoDE/rust-template.git"
branch = "main"
vcs = "Git"

You can then initialize a new project with this template by running cargo generate astra.