|
1 | 1 | # Examples |
2 | 2 |
|
3 | | -Simple, copy-paste-first examples for cargo-rail workflows. |
| 3 | +Copy-paste-ready examples for cargo-rail workflows. |
4 | 4 |
|
5 | | -## Change Detection |
| 5 | +## By Workflow |
6 | 6 |
|
7 | | -Progressive configs from minimal to full-featured: |
| 7 | +| Workflow | Example | Description | |
| 8 | +|----------|---------|-------------| |
| 9 | +| **Config** | [config/](config/) | Full annotated `rail.toml` | |
| 10 | +| **Change Detection** | [change_detection/](change_detection/) | Plan + run patterns | |
| 11 | +| **Unify** | [unify/](unify/) | Dependency unification | |
| 12 | +| **Split/Sync** | [split-sync/](split-sync/) | Crate extraction and sync | |
| 13 | +| **Release** | [release/](release/) | Version, changelog, publish | |
8 | 14 |
|
9 | | -| Example | Description | |
10 | | -|---------|-------------| |
11 | | -| [01-minimal](change_detection/01-minimal/) | Smallest usable setup | |
12 | | -| [02-balanced-monorepo](change_detection/02-balanced-monorepo/) | Practical baseline (recommended) | |
13 | | -| [03-strict-bot-pr](change_detection/03-strict-bot-pr/) | Stricter mode for bot PRs | |
14 | | -| [04-github-actions](change_detection/04-github-actions/) | Minimal planner-first GHA workflow | |
15 | | -| [05-custom-profiles](change_detection/05-custom-profiles/) | Custom profiles and workflow mapping | |
| 15 | +## Change Detection Patterns |
16 | 16 |
|
17 | | -## Unify |
18 | | - |
19 | | -- [unify/](unify/) — Config + validation results |
20 | | - |
21 | | -**Validated on 4 production repos (53 crates):** [VALIDATION_RESULTS.md](unify/VALIDATION_RESULTS.md) |
22 | | - |
23 | | -## Split/Sync |
24 | | - |
25 | | -- [split-sync/](split-sync/) — Config template (sandbox first) |
26 | | - |
27 | | -## Release |
28 | | - |
29 | | -- [release/](release/) — Config template (check mode only) |
30 | | - |
31 | | ---- |
| 17 | +| Pattern | For Projects With | Link | |
| 18 | +|---------|-------------------|------| |
| 19 | +| **With task runner** | just, make, xtask | [change_detection/with-task-runner/](change_detection/with-task-runner/) | |
| 20 | +| **Standalone** | No task runner | [change_detection/standalone/](change_detection/standalone/) | |
32 | 21 |
|
33 | 22 | ## Real-World Configs |
34 | 23 |
|
35 | 24 | Full production configs validated on real repositories: |
36 | 25 |
|
37 | | -| Repository | Config | Integration Guide | Metrics | |
38 | | -|------------|--------|-------------------|---------| |
39 | | -| tokio | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/tokio/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/tokio/docs/cargo-rail-integration-guide.md) | [Metrics](https://github.com/loadingalias/cargo-rail-testing/blob/main/tokio/docs/CHANGE_DETECTION_METRICS.md) | |
40 | | -| helix | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix/docs/cargo-rail-integration-guide.md) | [Metrics](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix/docs/CHANGE_DETECTION_METRICS.md) | |
41 | | -| meilisearch | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/meilisearch/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/meilisearch/docs/cargo-rail-integration-guide.md) | [Metrics](https://github.com/loadingalias/cargo-rail-testing/blob/main/meilisearch/docs/CHANGE_DETECTION_METRICS.md) | |
42 | | -| helix-db | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix-db/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix-db/docs/cargo-rail-integration-guide.md) | [Metrics](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix-db/docs/CHANGE_DETECTION_METRICS.md) | |
| 26 | +| Repository | Config | Integration Guide | |
| 27 | +|------------|--------|-------------------| |
| 28 | +| [tokio](https://github.com/loadingalias/cargo-rail-testing/tree/main/tokio) | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/tokio/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/tokio/docs/cargo-rail-integration-guide.md) | |
| 29 | +| [helix](https://github.com/loadingalias/cargo-rail-testing/tree/main/helix) | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix/docs/cargo-rail-integration-guide.md) | |
| 30 | +| [meilisearch](https://github.com/loadingalias/cargo-rail-testing/tree/main/meilisearch) | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/meilisearch/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/meilisearch/docs/cargo-rail-integration-guide.md) | |
| 31 | +| [helix-db](https://github.com/loadingalias/cargo-rail-testing/tree/main/helix-db) | [rail.toml](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix-db/.config/rail.toml) | [Guide](https://github.com/loadingalias/cargo-rail-testing/blob/main/helix-db/docs/cargo-rail-integration-guide.md) | |
43 | 32 |
|
44 | 33 | **Validation forks**: [cargo-rail-testing](https://github.com/loadingalias/cargo-rail-testing) |
45 | 34 |
|
46 | | ---- |
| 35 | +## Validation Results |
| 36 | + |
| 37 | +- **Unify**: [unify-results.md](unify/unify-results.md) — 96 deps unified, 258 undeclared features fixed across 53 crates |
| 38 | +- **Change Detection**: See each fork's `docs/CHANGE_DETECTION_METRICS.md` |
| 39 | + |
| 40 | +## Quick Validation |
47 | 41 |
|
48 | | -All examples are intentionally minimal and designed to avoid ornamental complexity. |
| 42 | +```bash |
| 43 | +cargo rail config validate --strict |
| 44 | +cargo rail plan --merge-base --explain |
| 45 | +cargo rail unify --check |
| 46 | +``` |
0 commit comments