Skip to content

Commit

Permalink
doc: new field extern_name in cargo-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Jan 7, 2023
1 parent db463e6 commit 1111831
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/doc/man/cargo-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,20 @@ The output has the following format:
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
*/
"name": "bitflags",
/* The Package ID of the dependency. */
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
/* Array of dependency kinds. Added in Cargo 1.40. */
"dep_kinds": [
{
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
Added in Cargo 1.68.
*/
"extern_name": "bitflags",
/* The dependency kind.
"dev", "build", or null for a normal dependency.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/doc/man/generated_txt/cargo-metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,20 @@ OUTPUT FORMAT
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
*/
"name": "bitflags",
/* The Package ID of the dependency. */
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
/* Array of dependency kinds. Added in Cargo 1.40. */
"dep_kinds": [
{
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
Added in Cargo 1.68.
*/
"extern_name": "bitflags",
/* The dependency kind.
"dev", "build", or null for a normal dependency.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/doc/src/commands/cargo-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,20 @@ The output has the following format:
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
*/
"name": "bitflags",
/* The Package ID of the dependency. */
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
/* Array of dependency kinds. Added in Cargo 1.40. */
"dep_kinds": [
{
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
Added in Cargo 1.68.
*/
"extern_name": "bitflags",
/* The dependency kind.
"dev", "build", or null for a normal dependency.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/etc/man/cargo-metadata.1
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,20 @@ The output has the following format:
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
NOTE: Deprecated. Please use `dep_kinds.extern_name` instead.
*/
"name": "bitflags",
/* The Package ID of the dependency. */
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust\-lang/crates.io\-index)",
/* Array of dependency kinds. Added in Cargo 1.40. */
"dep_kinds": [
{
/* The name of the dependency's library target.
If this is a renamed dependency, this is the new
name.
Added in Cargo 1.68.
*/
"extern_name": "bitflags",
/* The dependency kind.
"dev", "build", or null for a normal dependency.
*/
Expand Down

0 comments on commit 1111831

Please sign in to comment.