templ-cpp/cargo-generate.toml
2024-05-04 15:53:09 +02:00

33 lines
737 B
TOML

[template]
ignore = ["README.md"]
[hooks]
pre = ["pre.rhai"]
post = ["post.rhai"]
[placeholders.optimize]
type = "string"
prompt = "Optimize for:"
default = "speed"
choices = ["speed", "size", "none"]
[placeholders.license]
type = "string"
prompt = "License?"
default = "MIT"
choices = ["MIT", "GPL3", "GLWTPL", "CC"]
[conditional.'license == "MIT"']
ignore = ["LICENSE-GLWTPL", "LICENSE-GPL3", "LICENSE-CC"]
[conditional.'license == "GPL3"']
ignore = ["LICENSE-GLWTPL", "LICENSE-MIT", "LICENSE-CC"]
[conditional.'license == "GLWTPL"']
ignore = ["LICENSE-MIT", "LICENSE-GPL3", "LICENSE-CC"]
[conditional.'crate_type == "lib"']
ignore = ["src/main.cpp"]
[conditional.'crate_type == "bin"']
ignore = ["src/lib.cpp", "src/lib.hpp"]