Initial commit: Axum web service template
This commit is contained in:
28
cargo-generate.toml
Normal file
28
cargo-generate.toml
Normal 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
|
||||
Reference in New Issue
Block a user