Skip to content

Commit 72c11bd

Browse files
committed
docs: document alternate registry support
1 parent 529bbeb commit 72c11bd

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [Unreleased]
6+
7+
### Added
8+
9+
- Alternate registry support: dependencies using `registry = "my-registry"` are now handled correctly
10+
- A member dep only matches a workspace dep if both use the same registry (or both use the default crates.io)
11+
- Promotion candidates are grouped by `(name, registry)` pair — deps from different registries are not grouped together
12+
- `--fix` strips `registry` from member deps when converting to `{ workspace = true }` (the workspace dep owns the registry)
13+
- `--fix` carries `registry` into promoted workspace deps
14+
515
## [1.1.2] - 2026-03-18
616

717
### Fixed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@ All inputs are optional:
175175
- run: cargo workspace-inheritance-check
176176
```
177177

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+
178194
## Dependency Sections Checked
179195
180196
All dependency sections in member crates are checked:

0 commit comments

Comments
 (0)