Skip to content

Commit 600e231

Browse files
committed
fixup! Publish target's "doc" setting when emitting metadata
1 parent e831dd1 commit 600e231

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/doc/man/cargo-metadata.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ The output has the following format:
127127
This property is not included if no required features are set.
128128
*/
129129
"required-features": ["feat1"],
130+
/* Whether the target should be documented by `cargo doc`. */
131+
"doc": true,
130132
/* Whether or not this target has doc tests enabled, and
131133
the target is compatible with doc testing.
132134
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ OUTPUT FORMAT
122122
This property is not included if no required features are set.
123123
*/
124124
"required-features": ["feat1"],
125+
/* Whether the target should be documented by `cargo doc`. */
126+
"doc": true,
125127
/* Whether or not this target has doc tests enabled, and
126128
the target is compatible with doc testing.
127129
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ The output has the following format:
127127
This property is not included if no required features are set.
128128
*/
129129
"required-features": ["feat1"],
130+
/* Whether the target should be documented by `cargo doc`. */
131+
"doc": true,
130132
/* Whether or not this target has doc tests enabled, and
131133
the target is compatible with doc testing.
132134
*/

src/etc/man/cargo-metadata.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ The output has the following format:
124124
This property is not included if no required features are set.
125125
*/
126126
"required\-features": ["feat1"],
127+
/* Whether the target should be documented by `cargo doc`. */
128+
"doc": true,
127129
/* Whether or not this target has doc tests enabled, and
128130
the target is compatible with doc testing.
129131
*/

0 commit comments

Comments
 (0)