-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-generate.toml
54 lines (44 loc) · 1.11 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
[template]
cargo_generate_version = ">=0.17.4"
ignore = [".git", "LICENSE-APACHE", "LICENSE-MIT", "README.md"]
[hooks]
pre = ["pre-script.rhai"]
[placeholders.linux]
prompt = "Add support for Linux platform?"
type = "bool"
default = true
[placeholders.esp]
prompt = "Add support for ESP32 platform?"
type = "bool"
default = true
[conditional.'esp'.placeholders.mcu]
prompt = "Which ESP MCU to target?"
type = "string"
choices = [
"esp32",
"esp32c2",
"esp32c3",
"esp32c6",
"esp32h2",
"esp32s2",
"esp32s3",
]
default = "esp32"
[conditional.'!esp']
ignore = ["build.rs", "partitions.csv", "sdkconfig.defaults", "espflash.toml"]
[placeholders.template]
prompt = "Initialize template code for project?"
type = "bool"
default = true
[conditional.'template'.placeholders.template_advanced]
prompt = "Configure advanced template options?"
type = "bool"
default = false
[conditional.'template_advanced'.placeholders.template_logger]
prompt = "Initialize logger?"
type = "bool"
default = true
[conditional.'template_advanced'.placeholders.template_wifi]
prompt = "Setup WiFi provisioning?"
type = "bool"
default = true