Skip to content

Commit 26d1a25

Browse files
committed
Add homepage/documentation to cargo-metadata docs
1 parent 435117a commit 26d1a25

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

src/doc/man/cargo-metadata.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ The output has the following format:
182182
"readme": "README.md",
183183
/* The repository value from the manifest or null if not specified. */
184184
"repository": "https://github.com/rust-lang/cargo",
185+
/* The homepage value from the manifest or null if not specified. */
186+
"homepage": "https://rust-lang.org",
187+
/* The documentation value from the manifest or null if not specified. */
188+
"documentation": "https://doc.rust-lang.org/stable/std",
185189
/* The default edition of the package.
186190
Note that individual targets may have different editions.
187191
*/

src/doc/man/generated_txt/cargo-metadata.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ OUTPUT FORMAT
177177
"readme": "README.md",
178178
/* The repository value from the manifest or null if not specified. */
179179
"repository": "https://github.com/rust-lang/cargo",
180+
/* The homepage value from the manifest or null if not specified. */
181+
"homepage": "https://rust-lang.org",
182+
/* The documentation value from the manifest or null if not specified. */
183+
"documentation": "https://doc.rust-lang.org/stable/std",
180184
/* The default edition of the package.
181185
Note that individual targets may have different editions.
182186
*/

src/doc/src/commands/cargo-metadata.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ The output has the following format:
182182
"readme": "README.md",
183183
/* The repository value from the manifest or null if not specified. */
184184
"repository": "https://github.com/rust-lang/cargo",
185+
/* The homepage value from the manifest or null if not specified. */
186+
"homepage": "https://rust-lang.org",
187+
/* The documentation value from the manifest or null if not specified. */
188+
"documentation": "https://doc.rust-lang.org/stable/std",
185189
/* The default edition of the package.
186190
Note that individual targets may have different editions.
187191
*/

src/etc/man/cargo-metadata.1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ The output has the following format:
179179
"readme": "README.md",
180180
/* The repository value from the manifest or null if not specified. */
181181
"repository": "https://github.com/rust\-lang/cargo",
182+
/* The homepage value from the manifest or null if not specified. */
183+
"homepage": "https://rust-lang.org",
184+
/* The documentation value from the manifest or null if not specified. */
185+
"documentation": "https://doc.rust-lang.org/stable/std",
182186
/* The default edition of the package.
183187
Note that individual targets may have different editions.
184188
*/
@@ -329,7 +333,7 @@ Do not activate the \fBdefault\fR feature of the current directory's package.
329333
.RE
330334
.SS "Display Options"
331335
.sp
332-
\fB\-v\fR,
336+
\fB\-v\fR,
333337
\fB\-\-verbose\fR
334338
.RS 4
335339
Use verbose output. May be specified twice for "very verbose" output which
@@ -338,7 +342,7 @@ May also be specified with the \fBterm.verbose\fR
338342
\fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&.
339343
.RE
340344
.sp
341-
\fB\-q\fR,
345+
\fB\-q\fR,
342346
\fB\-\-quiet\fR
343347
.RS 4
344348
No output printed to stdout.
@@ -372,7 +376,7 @@ Path to the \fBCargo.toml\fR file. By default, Cargo searches for the
372376
\fBCargo.toml\fR file in the current directory or any parent directory.
373377
.RE
374378
.sp
375-
\fB\-\-frozen\fR,
379+
\fB\-\-frozen\fR,
376380
\fB\-\-locked\fR
377381
.RS 4
378382
Either of these flags requires that the \fBCargo.lock\fR file is
@@ -411,7 +415,7 @@ See the \fIrustup documentation\fR <https://rust\-lang.github.io/rustup/override
411415
for more information about how toolchain overrides work.
412416
.RE
413417
.sp
414-
\fB\-h\fR,
418+
\fB\-h\fR,
415419
\fB\-\-help\fR
416420
.RS 4
417421
Prints help information.

0 commit comments

Comments
 (0)