Skip to content

Commit cfc61f3

Browse files
committed
Auto merge of #6965 - ehuss:doc-metadata-doctest, r=alexcrichton
Document new `doctest` field. Added in #6953.
2 parents d0735fc + 3105b7d commit cfc61f3

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

src/doc/man/cargo-metadata.adoc

+5-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ The output has the following format:
130130
/* Array of required features.
131131
This property is not included if no required features are set.
132132
*/
133-
"required-features": ["feat1"]
133+
"required-features": ["feat1"],
134+
/* Whether or not this target has doc tests enabled, and
135+
the target is compatible with doc testing.
136+
*/
137+
"doctest": false
134138
}
135139
],
136140
/* Set of features defined for the package.

src/doc/man/generated/cargo-metadata.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ <h2 id="cargo_metadata_output_format">OUTPUT FORMAT</h2>
137137
/* Array of required features.
138138
This property is not included if no required features are set.
139139
*/
140-
"required-features": ["feat1"]
140+
"required-features": ["feat1"],
141+
/* Whether or not this target has doc tests enabled, and
142+
the target is compatible with doc testing.
143+
*/
144+
"doctest": false
141145
}
142146
],
143147
/* Set of features defined for the package.

src/etc/man/cargo-metadata.1

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: cargo-metadata
33
.\" Author: [see the "AUTHOR(S)" section]
44
.\" Generator: Asciidoctor 1.5.8
5-
.\" Date: 2019-05-08
5+
.\" Date: 2019-05-20
66
.\" Manual: \ \&
77
.\" Source: \ \&
88
.\" Language: English
99
.\"
10-
.TH "CARGO\-METADATA" "1" "2019-05-08" "\ \&" "\ \&"
10+
.TH "CARGO\-METADATA" "1" "2019-05-20" "\ \&" "\ \&"
1111
.ie \n(.g .ds Aq \(aq
1212
.el .ds Aq '
1313
.ss \n[.ss] 0
@@ -151,7 +151,11 @@ The output has the following format:
151151
/* Array of required features.
152152
This property is not included if no required features are set.
153153
*/
154-
"required\-features": ["feat1"]
154+
"required\-features": ["feat1"],
155+
/* Whether or not this target has doc tests enabled, and
156+
the target is compatible with doc testing.
157+
*/
158+
"doctest": false
155159
}
156160
],
157161
/* Set of features defined for the package.

0 commit comments

Comments
 (0)