generated from tangle-network/blueprint-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcargo-generate.toml
38 lines (29 loc) · 1018 Bytes
/
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
[template]
cargo_generate_version = ">=0.17.4"
ignore = [".git", "blueprint.json", "blueprint.lock"]
[placeholders.gh-username]
type = "string"
prompt = "Your GitHub username (or organization)"
# The username cannot end with a hyphen, too, but
# this requirement is not captured by the regex at the moment.
regex = "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$"
[placeholders.project-description]
type = "string"
prompt = "A short description"
[placeholders.project-homepage]
type = "string"
prompt = "Your project homepage"
[placeholders.flakes]
type = "bool"
prompt = "Do you want to use Nix & Nix Flakes?"
default = false
[conditional.'!flakes']
ignore = [ "flake.nix", "flake.lock", ".envrc" ]
[placeholders.docker]
type = "bool"
prompt = "Do you want to generate a Dockerfile for your gadget?"
default = true
[conditional.'!docker']
ignore = [ "Dockerfile", "docker/" ]
[conditional.'docker'.placeholders]
base-image = { type = "string", prompt = "What base image should be used?", default = "rustlang/rust:nightly" }