Files
k-template/cargo-generate.toml

34 lines
767 B
TOML

[template]
cargo_generate_version = ">=0.21.0"
ignore = [".git", "target", ".idea", ".vscode", "data.db"]
[filenames]
"api/Cargo.toml.template" = "api/Cargo.toml"
"infra/Cargo.toml.template" = "infra/Cargo.toml"
[placeholders.project_name]
type = "string"
prompt = "Project name"
[placeholders.database]
type = "string"
prompt = "Database type"
choices = ["sqlite", "postgres"]
default = "sqlite"
[placeholders.auth_jwt]
type = "bool"
prompt = "Enable JWT authentication (Bearer tokens)?"
default = true
[placeholders.auth_oidc]
type = "bool"
prompt = "Enable OIDC integration (Login with Google, etc.)?"
default = true
[conditional.'database == "sqlite"']
ignore = ["migrations_postgres"]
[conditional.'database == "postgres"']
ignore = ["migrations_sqlite"]