Skip to content

Commit 203c644

Browse files
committed
Add a note about bad kind fields
1 parent c3d95b2 commit 203c644

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

text/2141-alternative-registries.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ A valid registry index meets the following criteria:
273273
- `default_features`: whether the parent uses the default features of this dependency or not
274274
- `target`: on which target this dependency is needed
275275
- `kind`: can be `normal`, `build`, or `dev` to be a regular dependency, a build-time
276-
dependency, or a development dependency
276+
dependency, or a development dependency. Note: this is a required field, but a small number of
277+
entries exist in the crates.io index with either a missing or null `kind` field due to
278+
implementation bugs.
277279

278280
If a dependency's registry is not specified, Cargo will assume the dependency can be located in the
279281
current registry. By specifying the registry of a dependency in the index, cargo will have the

0 commit comments

Comments
 (0)