-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-generate.toml
72 lines (57 loc) · 1.79 KB
/
cargo-generate.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Parameters
[template]
cargo_generate_version = ">=0.22.0"
ignore = ["./assets/wallpaper.png", "Cargo.toml"]
exlude = ["./assets/wallpaper.png", "Cargo.toml"]
[placeholders.package_name]
type = "string"
prompt = "What is the name of the package?"
[placeholders.package_description]
type = "string"
prompt = "Enter a project description"
[placeholders.license]
type = "bool"
prompt = "Do you want to include a MIT License?"
default = false
[placeholders.email]
type = "string"
prompt = "What is your email? (CONTRIBUTING, LICENSE, etc)"
[placeholders.codeowner]
type = "string"
prompt = "What is your github username? (CODEOWNERS)"
[placeholders.toolchain]
type = "string"
prompt = "What is the rust toolchain version?"
choices = ["stable", "beta", "nightly"]
[placeholders.package_category]
type = "string"
prompt = "What is the category of your package?"
choices = ["accessibility", "aerospace", "algorithms", "asynchronous", "command-line-utilities", "web-programming", "config"]
[placeholders.github_release]
type = "bool"
prompt = "Do you want to create a github release?"
default = false
## Dependencies
[placeholders.sentry]
type = "bool"
prompt = "Do you want to use sentry?"
default = false
# Conditions
## License
[conditional.'license == false']
exclude = ["LICENSE-MIT.liquid"]
ignore = ["LICENSE-MIT.liquid"]
## Workflows
[conditional.'github_release == false']
ignore = [".github/workflows/release.yml"]
exlude = [".github/workflows/release.yml"]
## Dependencies
[conditional. 'sentry == true']
type = "string"
name = "sentry_dsn"
prompt = "What is your sentry dsn?"
default = "https://examplePublicKey@o0.ingest.sentry.io/0"
include = [".env.example", "./src/functions.rs"]
[conditional.'sentry == false']
exclude = [".env.example", "./src/functions.rs"]
ignore = [".env.example", "./src/functions.rs"]