Skip to content

Commit d1a2193

Browse files
committed
docs: include new public flag in metadata schema
1 parent 6a4f355 commit d1a2193

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

src/doc/man/cargo-metadata.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ The JSON output has the following format:
123123
If not specified or null, the dependency is from the default
124124
registry (crates.io).
125125
*/
126-
"registry": null
126+
"registry": null,
127+
/* (unstable) Boolean flag of whether or not this is a pulbic
128+
dependency. This field is only present when
129+
`-Zpublic-dependency` is enabled.
130+
*/
131+
"public": false
127132
}
128133
],
129134
/* Array of Cargo targets. */

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,12 @@ OUTPUT FORMAT
119119
If not specified or null, the dependency is from the default
120120
registry (crates.io).
121121
*/
122-
"registry": null
122+
"registry": null,
123+
/* (unstable) Boolean flag of whether or not this is a pulbic
124+
dependency. This field is only present when
125+
`-Zpublic-dependency` is enabled.
126+
*/
127+
"public": false
123128
}
124129
],
125130
/* Array of Cargo targets. */

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ The JSON output has the following format:
123123
If not specified or null, the dependency is from the default
124124
registry (crates.io).
125125
*/
126-
"registry": null
126+
"registry": null,
127+
/* (unstable) Boolean flag of whether or not this is a pulbic
128+
dependency. This field is only present when
129+
`-Zpublic-dependency` is enabled.
130+
*/
131+
"public": false
127132
}
128133
],
129134
/* Array of Cargo targets. */

src/etc/man/cargo-metadata.1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@ The JSON output has the following format:
125125
If not specified or null, the dependency is from the default
126126
registry (crates.io).
127127
*/
128-
"registry": null
128+
"registry": null,
129+
/* (unstable) Boolean flag of whether or not this is a pulbic
130+
dependency. This field is only present when
131+
`\-Zpublic\-dependency` is enabled.
132+
*/
133+
"public": false
129134
}
130135
],
131136
/* Array of Cargo targets. */

0 commit comments

Comments
 (0)