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
docs(metadata): Stabilize id format as PackageIDSpec
This makes it so you can take a package from `cargo metadata` and
then pass it with the `--package` option without worrying about
ambiguity.
Fixes#7267
Copy file name to clipboardExpand all lines: src/etc/man/cargo-metadata.1
+8-2
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ keeps metadata evolving without stagnation.
36
36
.sp
37
37
.RS4
38
38
\h'-04'\(bu\h'+02'\fBChangingopaquerepresentations\fR\[em] The inner representations of some
39
-
fields are implementation details. For example, fields related to\[lq]Package ID\[rq]
40
-
or \[lq]Source ID\[rq] are treated as opaque identifiers to differentiate packages or
39
+
fields are implementation details. For example, fields related to
40
+
\[lq]Source ID\[rq] are treated as opaque identifiers to differentiate packages or
41
41
sources. Consumers shouldn\[cq]t rely on those representations unless specified.
42
42
.RE
43
43
.SS "JSON format"
@@ -333,6 +333,12 @@ The JSON output has the following format:
333
333
}
334
334
.fi
335
335
.RE
336
+
.sp
337
+
Notes:
338
+
.sp
339
+
.RS4
340
+
\h'-04'\(bu\h'+02'For \fB"id"\fR field syntax, see \fIPackageIDSpecifications\fR <https://doc.rust\-lang.org/cargo/reference/pkgid\-spec.html> in the reference.
0 commit comments