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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# =============================================================================
# Rakefile.toml — tracing-subscriber-init build pipeline
#
# Quick reference:
#
# cargo rake default (most: fmt→clippy→build→test→coverage)
# cargo rake most ^test ^coverage skip tests and coverage
# cargo rake most clean add cargo clean
# cargo rake all everything (puc + most + audit + clean)
# cargo rake daily alias for all (morning full-pipeline run)
# cargo rake audit cargo-audit against .cargo/audit.toml's ignore list
# cargo rake release run scripts/release/release.fish: push the current vX.Y.Z
# tag, wait for .repomon/release.toml + audit.toml to verify
# it, then publish to crates.io (skipped for a
# vX.Y.Z-rc.N tag)
# =============================================================================
# ---------------------------------------------------------------------------
# tools
# ---------------------------------------------------------------------------
[]
= "cargo-matrix"
= ["cargo", "matrix", "--version"]
= ["cargo", "install", "cargo-matrix", "--force", "--locked"]
= true
[]
= "cargo-nextest"
= ["cargo", "nextest", "--version"]
= ["cargo", "install", "cargo-nextest", "--force", "--locked"]
= true
[]
= "cargo-llvm-cov"
= ["cargo", "llvm-cov", "--version"]
= ["cargo", "install", "cargo-llvm-cov", "--force", "--locked"]
= true
[]
= "cargo-audit"
= ["cargo", "audit", "--version"]
= ["cargo", "install", "cargo-audit", "--force", "--locked"]
= true
[]
= "The 'puc' fish function is required to run this target"
# ---------------------------------------------------------------------------
# update
# ---------------------------------------------------------------------------
[]
= ["puc"]
= false
[[]]
= "puc"
= ["linux"]
= "puc"
# ---------------------------------------------------------------------------
# fmt
# ---------------------------------------------------------------------------
[[]]
= "fmt"
= ["cargo", "fmt"]
[[]]
= "fmt check"
= ["cargo", "fmt", "--all", "--", "--check"]
# ---------------------------------------------------------------------------
# clippy
# ---------------------------------------------------------------------------
[]
= ["matrix"]
[[]]
= "clippy"
= ["cargo", "matrix", "clippy", "--all-targets", "--", "-Dwarnings"]
# ---------------------------------------------------------------------------
# build
# ---------------------------------------------------------------------------
[]
= ["matrix"]
[[]]
= "build"
= ["cargo", "matrix", "build"]
# ---------------------------------------------------------------------------
# test
# ---------------------------------------------------------------------------
[]
= ["build"]
= ["matrix", "nextest"]
[[]]
= "nextest"
= ["cargo", "matrix", "nextest", "run"]
# ---------------------------------------------------------------------------
# coverage
# ---------------------------------------------------------------------------
[]
= ["test"]
= ["matrix", "llvm-cov", "nextest"]
[[]]
= "coverage"
= [
"cargo",
"matrix",
"-F",
"unstable",
"llvm-cov",
"nextest",
"--no-report",
]
[[]]
= "lcov.info"
= ["cargo", "llvm-cov", "report", "--lcov", "--output-path", "lcov.info"]
[[]]
= "html"
= ["cargo", "llvm-cov", "report", "--html"]
# ---------------------------------------------------------------------------
# audit
# ---------------------------------------------------------------------------
[]
= ["audit"]
[[]]
= "audit"
= ["cargo", "audit", "--deny", "warnings"]
# ---------------------------------------------------------------------------
# release — publishes the current tag to crates.io. See scripts/release/
# release.fish for the full pipeline (push tag → wait for
# .repomon/release.toml's linux-rake/macos-rake/windows-rake jobs and
# .repomon/audit.toml's audit job to hand back success markers → cargo
# publish, skipped for a -rc tag). platform = ["linux"] because that's
# where this machine's crates.io login lives — repomon has no
# secrets-injection mechanism, so publishing is a local step, never a
# repomon one.
# ---------------------------------------------------------------------------
[]
[[]]
= "release"
= ["linux"]
= "fish scripts/release/release.fish"
# ---------------------------------------------------------------------------
# clean
# ---------------------------------------------------------------------------
[[]]
= "clean"
= ["cargo", "clean"]
[[]]
= "rm lcov.info"
= "rm -f lcov.info"
= "rm -f lcov.info"
= "Remove-Item -Force lcov.info -ErrorAction Ignore"
# ---------------------------------------------------------------------------
# aggregates
# ---------------------------------------------------------------------------
[]
= ["fmt", "clippy", "build", "test", "coverage"]
# audit is deliberately left out of `most`/default -- it now runs
# continuously via the dedicated .repomon/audit.toml workflow on every
# release-tag push, so re-running it as part of every `most` invocation
# would be redundant. Still included in `all`/`daily` for a full local
# pipeline run.
[]
= ["puc", "fmt", "clippy", "audit", "build", "test", "coverage", "clean"]
[]
= ["all"]
[]
= ["most"]