Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.02 KB

USAGE.md

File metadata and controls

43 lines (28 loc) · 1.02 KB

Usage

Generating a new project

If you've cloned the repository, run the following to generate a new project:

cargo generate --path axum-template --name new-project-name

where axum-template is the path to this template and new-project-name is the name of the new project.

Otherwise, you can generate a new project directly from GitHub:

cargo generate --git digitalsanctum/axum-template --name new-project-name

Favorite

Add the following to $CARGO_HOME to make generating a new project easier:

[favorites.axum]
path = "/path/to/axum-template"
vcs = "None"
init = false
overwrite = true
cargo generate axum --name new-project-name

Read more about favorites here.

Companion Script

A companion script, scripts/generate.sh, is provided to make generating a new project easier.

References