-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcargo-generate.toml
More file actions
58 lines (54 loc) · 2.45 KB
/
Copy pathcargo-generate.toml
File metadata and controls
58 lines (54 loc) · 2.45 KB
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
# cargo-generate template config for Deck.
#
# Deck is a cargo-generate TEMPLATE. Forkers run:
# cargo install cargo-generate
# cargo generate gh:hellno/deck --name my-app # answer the bundle-org prompt
#
# The files in `include` below contain {{ }} Liquid tokens, so the raw repo does
# NOT build directly — CI generates a project first, then builds it. See
# .github/workflows/ci.yml and the "cargo-generate template" note in CLAUDE.md.
[template]
cargo_generate_version = ">=0.18.0"
# ALLOWLIST: ONLY these files are processed for Liquid tokens. Every other file
# (docs/* and the other src/*.rs) is copied verbatim, so its braces/code are never
# touched. Maintainer-facing files with generated-project `.liquid` variants are
# listed by their destination names below.
#
# ⚠️ Maintaining this: to rename a new literal, add its file here AND add the token.
# In `.liquid` overrides, wrap Just/GitHub `${{ }}` syntax in Liquid raw blocks.
include = [
"Cargo.toml",
# Cargo.lock's root [[package]] name must track Cargo.toml's, or `cargo --locked`
# (in the generated fork's `just ci`) fails on the renamed root package.
"Cargo.lock",
"src/main.rs",
"src/settings.rs",
"src/overlay/mod.rs",
"scripts/make-app-icon.py",
"LICENSE",
"NOTICE",
# Generated-project variants. cargo-generate strips `.liquid` and lets these
# overwrite the maintainer-facing files with fork-appropriate instructions.
# Match the destination names: cargo-generate strips `.liquid` before it
# applies this processing allow-list.
"README.md",
"AGENTS.md",
"CLAUDE.md",
"justfile",
".github/workflows/ci.yml",
".github/dependabot.yml",
]
# Repository-governance files belong to the Deck template itself. A generated app
# starts without upstream issue links, contributor policy, or maintainer contacts.
ignore = [
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"SECURITY.md",
".github/ISSUE_TEMPLATE",
".github/PULL_REQUEST_TEMPLATE.md",
]
[placeholders]
# Reverse-DNS bundle identifier parts. `{{project-name}}` (from --name) is the third
# segment, so the full id is `{{bundle_qualifier}}.{{bundle_org}}.{{project-name}}`.
bundle_qualifier = { type = "string", prompt = "Bundle ID qualifier (reverse-DNS top segment)", default = "com", regex = "^[a-z][a-z0-9]*$" }
bundle_org = { type = "string", prompt = "Bundle ID organization (reverse-DNS, e.g. your name or company)", default = "example", regex = "^[a-z0-9][a-z0-9-]*$" }