Skip to content

Commit 09ec414

Browse files
committed
doc: new field extern_name in cargo-metadata
1 parent cc61945 commit 09ec414

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

src/doc/man/cargo-metadata.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,20 @@ The output has the following format:
242242
/* The name of the dependency's library target.
243243
If this is a renamed dependency, this is the new
244244
name.
245+
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
245246
*/
246247
"name": "bitflags",
247248
/* The Package ID of the dependency. */
248249
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
249250
/* Array of dependency kinds. Added in Cargo 1.40. */
250251
"dep_kinds": [
251252
{
253+
/* The name of the dependency's library target.
254+
If this is a renamed dependency, this is the new
255+
name.
256+
Added in Cargo 1.68.
257+
*/
258+
"extern_name": "bitflags",
252259
/* The dependency kind.
253260
"dev", "build", or null for a normal dependency.
254261
*/

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,20 @@ OUTPUT FORMAT
237237
/* The name of the dependency's library target.
238238
If this is a renamed dependency, this is the new
239239
name.
240+
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
240241
*/
241242
"name": "bitflags",
242243
/* The Package ID of the dependency. */
243244
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
244245
/* Array of dependency kinds. Added in Cargo 1.40. */
245246
"dep_kinds": [
246247
{
248+
/* The name of the dependency's library target.
249+
If this is a renamed dependency, this is the new
250+
name.
251+
Added in Cargo 1.68.
252+
*/
253+
"extern_name": "bitflags",
247254
/* The dependency kind.
248255
"dev", "build", or null for a normal dependency.
249256
*/

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,20 @@ The output has the following format:
242242
/* The name of the dependency's library target.
243243
If this is a renamed dependency, this is the new
244244
name.
245+
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
245246
*/
246247
"name": "bitflags",
247248
/* The Package ID of the dependency. */
248249
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
249250
/* Array of dependency kinds. Added in Cargo 1.40. */
250251
"dep_kinds": [
251252
{
253+
/* The name of the dependency's library target.
254+
If this is a renamed dependency, this is the new
255+
name.
256+
Added in Cargo 1.68.
257+
*/
258+
"extern_name": "bitflags",
252259
/* The dependency kind.
253260
"dev", "build", or null for a normal dependency.
254261
*/

src/etc/man/cargo-metadata.1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,20 @@ The output has the following format:
239239
/* The name of the dependency's library target.
240240
If this is a renamed dependency, this is the new
241241
name.
242+
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
242243
*/
243244
"name": "bitflags",
244245
/* The Package ID of the dependency. */
245246
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust\-lang/crates.io\-index)",
246247
/* Array of dependency kinds. Added in Cargo 1.40. */
247248
"dep_kinds": [
248249
{
250+
/* The name of the dependency's library target.
251+
If this is a renamed dependency, this is the new
252+
name.
253+
Added in Cargo 1.68.
254+
*/
255+
"extern_name": "bitflags",
249256
/* The dependency kind.
250257
"dev", "build", or null for a normal dependency.
251258
*/

0 commit comments

Comments
 (0)