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: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,22 @@ All inputs are optional:
175
175
- run: cargo workspace-inheritance-check
176
176
```
177
177
178
+
## Alternate Registry Support
179
+
180
+
Dependencies that use [alternate registries](https://doc.rust-lang.org/cargo/reference/registries.html#using-an-alternate-registry) are handled correctly:
181
+
182
+
- A member dep like `serde = { version = "1.0", registry = "my-registry" }` will **not** match a workspace dep `serde = "1.0"` (default crates.io registry) — they are from different sources
183
+
- Promotion candidates are grouped by name **and** registry — deps from different registries are never grouped together
184
+
- `--fix`strips `registry` from member deps when converting to `{ workspace = true }` (the workspace dep owns the registry, just like it owns the version)
185
+
- `--fix` carries `registry` into promoted workspace deps:
186
+
187
+
```
188
+
warning: `my-crate` appears in 2 crates but is not in [workspace.dependencies]
189
+
--> crates/one/Cargo.toml
190
+
--> crates/two/Cargo.toml
191
+
hint: consider adding `my-crate = { version = "1.0", registry = "my-registry" }` to [workspace.dependencies]
192
+
```
193
+
178
194
## Dependency Sections Checked
179
195
180
196
All dependency sections in member crates are checked:
0 commit comments