Initial commit: Axum web service template

This commit is contained in:
fa-sharp
2026-02-19 15:45:45 -05:00
commit 694b94d579
11 changed files with 1719 additions and 0 deletions

28
cargo-generate.toml Normal file
View File

@@ -0,0 +1,28 @@
[template]
cargo_generate_version = ">=0.10.0"
[placeholders.project-description]
type = "string"
prompt = "Project description?"
default = "A Rust web service built with Axum"
[placeholders.env_prefix]
type = "string"
prompt = "Environment variable prefix (e.g., APP for APP_HOST, APP_PORT)?"
default = "APP"
[placeholders.default_port]
type = "string"
prompt = "Default server port?"
default = "8080"
[placeholders.default_log_level]
type = "string"
prompt = "Default log level?"
default = "info"
choices = ["trace", "debug", "info", "warn", "error"]
[placeholders.include_aide]
type = "bool"
prompt = "Include aide for OpenAPI documentation?"
default = true