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 and Nushell are required for some features.
- A basic logger setup using tracing
- A justfile configuration for using the logger
Install Cargo Generate by running cargo install cargo-generate
in your terminal.
Then run
cargo generate --git https://github.com/AstragoDETechnologies/rust_template.git
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 default Rust template."
git = "https://github.com/AstragoDETechnologies/rust_template.git"
branch = "main"
vcs = "Git"
You can then initialize a new project with this template by running cargo generate astra
.