workspace-template/cargo-generate.toml
2026-01-17 22:22:16 +10:30

26 lines
460 B
TOML

[template]
cargo_generate_version = ">=0.18.0"
[hooks]
post = ["post-generate.rhai"]
[placeholders.project-name]
type = "string"
prompt = "Project name?"
regex = "^[a-zA-Z][a-zA-Z0-9_-]*$"
[placeholders.crates]
type = "string"
prompt = "Crate names (comma-separated, e.g. 'core,cli,macros')?"
default = "core"
[placeholders.author]
type = "string"
prompt = "Author?"
default = ""
[placeholders.license]
type = "string"
prompt = "License?"
default = "MIT"