templ-cpp/cargo-generate.toml

34 lines
737 B
TOML
Raw Permalink Normal View History

2024-01-28 16:35:30 +01:00
[template]
ignore = ["README.md"]
[hooks]
pre = ["pre.rhai"]
post = ["post.rhai"]
2024-02-29 19:57:22 +01:00
[placeholders.optimize]
type = "string"
2024-05-04 15:53:09 +02:00
prompt = "Optimize for:"
2024-02-29 19:57:22 +01:00
default = "speed"
choices = ["speed", "size", "none"]
2024-01-28 16:35:30 +01:00
[placeholders.license]
type = "string"
prompt = "License?"
default = "MIT"
2024-03-02 12:15:11 +01:00
choices = ["MIT", "GPL3", "GLWTPL", "CC"]
2024-01-28 16:35:30 +01:00
[conditional.'license == "MIT"']
2024-03-02 12:15:11 +01:00
ignore = ["LICENSE-GLWTPL", "LICENSE-GPL3", "LICENSE-CC"]
2024-01-28 16:35:30 +01:00
[conditional.'license == "GPL3"']
2024-03-02 12:15:11 +01:00
ignore = ["LICENSE-GLWTPL", "LICENSE-MIT", "LICENSE-CC"]
2024-01-28 16:35:30 +01:00
[conditional.'license == "GLWTPL"']
2024-03-02 12:15:11 +01:00
ignore = ["LICENSE-MIT", "LICENSE-GPL3", "LICENSE-CC"]
2024-01-28 16:35:30 +01:00
[conditional.'crate_type == "lib"']
ignore = ["src/main.cpp"]
[conditional.'crate_type == "bin"']
ignore = ["src/lib.cpp", "src/lib.hpp"]