X0025 hakari-manage-deps¶
Rule: Every member hakari manages depends on the workspace-hack package, and no other.
| Code | X0025 (stable, never reused) |
| Id | hakari-manage-deps |
| Category | hakari |
| Source | hakari (linked as a library) |
| Fix | by hand |
| Needs | the resolved dependency graph (full cargo metadata) |
Level per tier¶
| Tier | Level | Reason |
|---|---|---|
| small | off | |
| small-workspace | off | |
| medium | off | |
| big | warn |
the workspace-hack helps only the members that depend on it; warn, as adding one is each workspace's choice |
| ai | off | |
| embedded | off | |
| ui | off | |
| egui | off | |
| units-strict | off | |
| units-paranoid | off |
Why¶
The workspace-hack only helps the members that depend on it. hakari decides which members it manages (.config/hakari.toml); this lint reports members that miss the dependency, or have it while excluded, like cargo hakari manage-deps --dry-run.
How to fix¶
cargo hakari manage-deps adds and removes the dependency lines.
Configure¶
Allow one finding in the code with // spirit-level: allow(hakari-manage-deps) <reason> (waivers); the code works there too, as in [lints.X0025].