-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
387 lines (300 loc) · 11.3 KB
/
mise.toml
File metadata and controls
387 lines (300 loc) · 11.3 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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
# SPDX-FileCopyrightText: 2026 Knitli Inc.
# SPDX-FileContributor: Adam Poulemanos <adam@knit.li>
#
# SPDX-License-Identifier: Apache-2.0
experimental_monorepo_root = true
[monorepo]
config_roots = ["site/*", "crates/*"]
[tools]
hk = "latest"
pkl = "latest"
rust = "nightly"
[env]
RUST_BACKTRACE = "1"
CARGO_TERM_COLOR = "always"
# =============================================================================
# BUILD TASKS
# =============================================================================
[tasks.build]
description = "Build with default features (source-local-file)"
run = "cargo build"
[tasks."build:full"]
description = "Build with all features enabled"
run = "cargo build --features full"
[tasks."build:release"]
description = "Build release with all features"
run = "cargo build --release --features full"
[tasks."build:sources"]
description = "Build with all source connectors"
run = "cargo build --features all-sources"
[tasks."build:targets"]
description = "Build with all target connectors"
run = "cargo build --features all-targets"
[tasks."build:functions"]
description = "Build with all transform functions"
run = "cargo build --features all-functions"
# =============================================================================
# TEST TASKS
# =============================================================================
[tasks.test]
description = "Run tests with default features"
run = "cargo test"
[tasks."test:full"]
description = "Run tests with all features"
run = "cargo test --features full"
[tasks."test:sources"]
description = "Run tests for source connectors"
run = "cargo test --features all-sources"
[tasks."test:targets"]
description = "Run tests for target connectors"
run = "cargo test --features all-targets"
[tasks."test:functions"]
description = "Run tests for transform functions"
run = "cargo test --features all-functions"
[tasks."test:verbose"]
description = "Run tests with output capture disabled"
run = "cargo test --features full -- --nocapture"
[tasks."test:doc"]
description = "Run documentation tests"
run = "cargo test --doc --features full"
# =============================================================================
# LINT & FORMAT TASKS
# =============================================================================
[tasks.fmt]
description = "Format all code"
run = "cargo fmt --all"
[tasks."fmt:check"]
description = "Check code formatting"
run = "cargo fmt --all -- --check"
[tasks.clippy]
description = "Run clippy with all features"
run = "cargo clippy --all-features -- -D warnings"
[tasks."clippy:fix"]
description = "Run clippy and apply fixes"
run = "cargo clippy --all-features --fix --allow-dirty --allow-staged"
[tasks."fmt:toml"]
description = "Format TOML files"
sources = ["**/*.toml"]
run = "tombi format"
tools.tombi = "latest"
[tasks.fix]
description = "Fix and format everything."
depends = ["fmt", "fmt:toml", "clippy:fix"]
# =============================================================================
# DOCUMENTATION TASKS
# =============================================================================
[tasks.doc]
description = "Generate documentation"
run = "cargo doc --features full --no-deps"
[tasks."doc:open"]
description = "Generate and open documentation"
run = "cargo doc --features full --no-deps --open"
[tasks."doc:private"]
description = "Generate docs including private items"
run = "cargo doc --features full --no-deps --document-private-items"
# =============================================================================
# EXAMPLE TASKS
# =============================================================================
[tasks."example:transient"]
description = "Run transient flow example"
run = "cargo run -p recoco --example transient --features function-split"
[tasks."example:file"]
description = "Run file processing example"
run = "cargo run -p recoco --example file_processing --features function-split"
[tasks."example:custom"]
description = "Run custom operation example"
run = "cargo run -p recoco --example custom_op"
[tasks."example:lang"]
description = "Run language detection example"
run = "cargo run -p recoco --example detect_lang --features function-detect-lang"
# =============================================================================
# CI/CHECK TASKS
# =============================================================================
[tasks.check]
description = "Quick check with default features"
run = "cargo check"
[tasks."check:full"]
description = "Check with all features"
run = "cargo check --features full"
[tasks."check:all"]
description = "Check all workspace members with all features"
run = "cargo check --workspace --all-features"
[tasks."check:toml"]
tools.tombi = "latest"
description = "check TOML files"
sources = ["**/*.toml"]
run = "tombi lint"
[tasks."check:actions"]
tools.actionlint = "latest"
description = "Check GitHub Actions workflows"
sources = [".github/**/*.yml", ".github/**/*.yaml"]
run = "actionlint"
[tasks.ci]
description = "Run full CI checks (fmt, clippy, test)"
depends = ["fmt:check", "clippy", "test:full", "check:full", "check:toml"]
alias = "lint"
[tasks."ci:quick"]
description = "Quick CI checks (fmt, clippy, check)"
depends = ["fmt:check", "clippy", "check"]
# =============================================================================
# CLEAN & MAINTENANCE TASKS
# =============================================================================
[tasks.clean]
description = "Clean build artifacts"
run = "cargo clean"
[tasks."clean:deep"]
description = "Deep clean including target and Cargo.lock"
run = """
cargo clean
rm -rf target/
"""
[tasks.update]
description = "Update dependencies"
run = "cargo update"
[tasks.outdated]
description = "Check for outdated dependencies"
run = "cargo outdated -R"
[tasks.audit]
description = "Run security audit"
run = "cargo audit"
# =============================================================================
# FEATURE-SPECIFIC BUILD TASKS
# =============================================================================
[tasks."build:postgres"]
description = "Build with PostgreSQL source and target"
run = "cargo build --features source-postgres,target-postgres"
[tasks."build:qdrant"]
description = "Build with Qdrant vector DB target"
run = "cargo build --features target-qdrant"
[tasks."build:neo4j"]
description = "Build with Neo4j graph DB target"
run = "cargo build --features target-neo4j"
[tasks."build:s3"]
description = "Build with S3 source connector"
run = "cargo build --features source-s3"
[tasks."build:azure"]
description = "Build with Azure Blob source connector"
run = "cargo build --features source-azure"
[tasks."build:gdrive"]
description = "Build with Google Drive source connector"
run = "cargo build --features source-gdrive"
[tasks."build:embed"]
description = "Build with embedding functions"
run = "cargo build --features function-embed"
[tasks."build:llm"]
description = "Build with LLM extraction functions"
run = "cargo build --features function-extract-llm"
# =============================================================================
# WORKSPACE MEMBER TASKS
# =============================================================================
[tasks."build:utils"]
description = "Build recoco-utils crate"
run = "cargo build -p recoco-utils"
[tasks."build:splitters"]
description = "Build recoco-splitters crate"
run = "cargo build -p recoco-splitters"
[tasks."test:utils"]
description = "Test recoco-utils crate"
run = "cargo test -p recoco-utils"
[tasks."test:splitters"]
description = "Test recoco-splitters crate"
run = "cargo test -p recoco-splitters"
# =============================================================================
# DEVELOPMENT WORKFLOW TASKS
# =============================================================================
[tasks.dev]
tools.rust = "nightly"
description = "Development build with common features. Uses cranelift backend for faster compilation."
run = '''
rustup component add rustc-codegen-cranelift-preview --toolchain nightly 2>/dev/null || true
RUSTFLAGS="-Zcodegen-backend=cranelift" cargo +nightly build --workspace
'''
[tasks.watch]
description = "Watch and rebuild on changes"
run = "cargo watch -x 'build --features function-split'"
[tasks."watch:test"]
description = "Watch and run tests on changes"
run = "cargo watch -x 'test --features full'"
# =============================================================================
# RELEASE TASKS
# =============================================================================
[tasks."release:check"]
description = "Check release build compiles"
run = "cargo build --release --features full"
[tasks."release:size"]
description = "Show release binary sizes"
run = """
cargo build --release --features full
ls -lh target/release/*.rlib 2>/dev/null || echo "No rlib files"
ls -lh target/release/librecoco* 2>/dev/null || echo "No library files yet"
"""
# =============================================================================
# CHANGELOG TASKS (git-cliff)
# =============================================================================
[tasks.changelog]
tools.git-cliff = "latest"
description = "Generate full changelog"
run = "git cliff -o CHANGELOG.md"
[tasks."changelog:unreleased"]
tools.git-cliff = "latest"
description = "Generate changelog for unreleased changes"
run = "git cliff --unreleased"
[tasks."changelog:preview"]
tools.git-cliff = "latest"
description = "Preview changelog without writing to file"
run = "git cliff"
[tasks."changelog:latest"]
description = "Show changelog for latest tag only"
tools.git-cliff = "latest"
run = "git cliff --latest"
[tasks."changelog:bump"]
description = "Generate changelog and bump version"
tools.git-cliff = "latest"
run = "git cliff --bump -o CHANGELOG.md"
[tasks."changelog:tag"]
description = "Generate changelog for specific tag range (use: mise run changelog:tag -- v0.1.0..v0.2.0)"
tools.git-cliff = "latest"
run = "git cliff"
[tasks."changelog:init"]
description = "Initialize git-cliff config (if needed)"
tools.git-cliff = "latest"
run = "git cliff --init"
# =============================================================================
# PUBLISH TASKS
# =============================================================================
[tasks."publish:dry-run"]
description = "Validate all crates can be published (dry-run)"
run = """
cargo publish -p recoco-utils --dry-run
cargo publish -p recoco-splitters --dry-run
cargo publish -p recoco --dry-run
"""
[tasks."publish:utils"]
description = "Publish recoco-utils to crates.io"
run = "cargo publish -p recoco-utils"
[tasks."publish:splitters"]
description = "Publish recoco-splitters to crates.io"
run = "cargo publish -p recoco-splitters"
[tasks."publish:recoco"]
description = "Publish recoco to crates.io"
run = "cargo publish -p recoco"
[tasks."publish:all"]
description = "Publish all crates in order (utils → splitters → recoco)"
run = """
cargo publish -p recoco-utils
echo "Waiting for crates.io propagation..."
sleep 30
cargo publish -p recoco-splitters
echo "Waiting for crates.io propagation..."
sleep 30
cargo publish -p recoco
"""
# =============================================================================
# MSRV TASKS
# =============================================================================
[tasks.msrv]
description = "Check MSRV compatibility (requires rustup)"
run = "cargo +1.89 check --all-features"
[tasks."msrv:install"]
description = "Install MSRV toolchain"
run = "rustup install 1.89"