This commit is contained in:
2024-05-03 12:25:20 +03:00
commit 8236ae0642
19 changed files with 452 additions and 0 deletions

13
cargo-generate.toml Normal file
View File

@ -0,0 +1,13 @@
[placeholders]
git-owner = { prompt = "Gitea owner or organization name", type = "string", regex = "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$" }
use_postgres = { prompt = "Do you use PostgreSQL for tests?", type = "bool", default = false }
[template]
cargo_generate_version = ">=0.20.0"
ignore = ["README.md"]
[conditional.'crate_type == "lib"']
ignore = [ "src/main.rs", "Dockerfile" ]
[conditional.'use_postgres == false']
ignore = [ ".env.example", "docker-compose.yaml", "tests" ]