You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,8 @@ Controls workspace dependency unification behavior. All options are optional wit
102
102
103
103
| Option | Type | Default | Description |
104
104
|--------|------|---------|-------------|
105
-
|`msrv`|`bool`|`true`| Compute and write MSRV to `[workspace.package].rust-version`. The MSRV is determined by `msrv_source`. |
105
+
|`msrv`|`bool`|`true`| Compute and write MSRV to `[workspace.package].rust-version` (written as `major.minor.patch`). The MSRV is determined by `msrv_source`. |
106
+
|`enforce_msrv_inheritance`|`bool`|`false`| Ensure every workspace member inherits MSRV by setting `[package].rust-version = { workspace = true }` in each member's `Cargo.toml`. This makes `[workspace.package].rust-version` actually apply across the workspace. |
106
107
|`msrv_source`|`enum`|`"max"`| How to compute the final MSRV:<br>• `"deps"` - Use maximum from dependencies only (original behavior)<br>• `"workspace"` - Preserve existing rust-version, warn if deps need higher<br>• `"max"` - Take max(workspace, deps) - your explicit setting wins if higher |
107
108
|`detect_unused`|`bool`|`true`| Detect dependencies declared in manifests but absent from the resolved cargo graph. |
- In my experience, `major_version_conflict = "bump"` works in most cases; some may require code fixes
152
153
- Use `"warn"` for safety, `"bump"` for the leanest build graph
154
+
- If `[workspace.package].rust-version` is missing but root `[package].rust-version` is present, `unify` uses it as the baseline and writes it to `[workspace.package].rust-version` (consider enabling `enforce_msrv_inheritance` to avoid drift)
0 commit comments