templ-rust/cargo-generate.toml

64 lines
1.4 KiB
TOML
Raw Permalink Normal View History

2024-01-28 11:55:06 +01:00
[template]
2024-01-28 12:04:11 +01:00
ignore = ["README.md"]
2024-01-28 11:55:06 +01:00
[hooks]
pre = ["pre.rhai"]
2024-01-28 11:59:16 +01:00
post = ["post.rhai"]
2024-01-28 11:55:06 +01:00
[placeholders.serde]
type = "bool"
prompt = "Serde?"
default = true
[placeholders.async]
type = "bool"
prompt = "Async?"
default = true
[placeholders.tracing]
type = "bool"
prompt = "Tracing?"
default = true
2024-07-17 14:30:05 +02:00
[placeholders.axum]
type = "bool"
prompt = "axum?"
default = true
2024-01-28 11:55:06 +01:00
[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"]
2024-01-28 12:06:39 +01:00
[conditional.'crate_type == "lib"']
2024-01-28 11:55:06 +01:00
ignore = ["src/main.rs"]
2024-01-28 12:06:39 +01:00
[conditional.'crate_type == "bin"']
2024-01-28 11:55:06 +01:00
ignore = ["src/lib.rs"]
2024-05-04 16:00:08 +02:00
# [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"]
#