templ-rust/cargo-generate.toml
2024-05-04 16:00:08 +02:00

58 lines
1.3 KiB
TOML

[template]
ignore = ["README.md"]
[hooks]
pre = ["pre.rhai"]
post = ["post.rhai"]
[placeholders.serde]
type = "bool"
prompt = "Serde?"
default = true
[placeholders.async]
type = "bool"
prompt = "Async?"
default = true
[placeholders.tracing]
type = "bool"
prompt = "Tracing?"
default = true
[placeholders.license]
type = "string"
prompt = "License?"
default = "MIT"
choices = ["MIT", "GPL3", "GLWTPL"]
[conditional.'license == "MIT"']
ignore = ["LICENSE-GLWTPL", "LICENSE-GPL3"]
[conditional.'license == "GPL3"']
ignore = ["LICENSE-GLWTPL", "LICENSE-MIT"]
[conditional.'license == "GLWTPL"']
ignore = ["LICENSE-MIT", "LICENSE-GPL3"]
[conditional.'crate_type == "lib"']
ignore = ["src/main.rs"]
[conditional.'crate_type == "bin"']
ignore = ["src/lib.rs"]
# [placeholders]
# ci-release = { type = "bool", prompt = "CI release?", default = true }
# ci = { type = "bool", prompt = "CI?", default = true }
#
# [conditional.'ci == false']
# ignore = [".github/workflows/ci.yaml"]
#
# [conditional.'ci == true'.placeholders]
# ci-tests = { type = "bool", prompt = "CI tests?", default = true }
# ci-fmt = { type = "bool", prompt = "CI fmt?", default = true }
# ci-clippy = { type = "bool", prompt = "CI clippy?", default = true }
#
# [conditional.'ci-release == false']
# ignore = [".github/workflows/release.yaml"]
#