diff --git a/src/doc/man/cargo-metadata.md b/src/doc/man/cargo-metadata.md index 5a878a74e..a94d3005c 100644 --- a/src/doc/man/cargo-metadata.md +++ b/src/doc/man/cargo-metadata.md @@ -312,9 +312,9 @@ The JSON output has the following format: ] } ], - /* The root package of the workspace. - This is null if this is a virtual workspace. Otherwise it is - the Package ID of the root package. + /* The package in the current working directory (if --manifest-path is not given). + This is null if there is a virtual workspace. Otherwise it is + the Package ID of the package. */ "root": "file:///path/to/my-package#0.1.0", }, @@ -359,7 +359,7 @@ possible value. {{#option "`--filter-platform` _triple_" }} This filters the `resolve` output to only include dependencies for the -given [target triple](../appendix/glossary.html#target). +given [target triple](../appendix/glossary.html#target). Without this flag, the resolve includes all targets. Note that the dependencies listed in the "packages" array still includes all diff --git a/src/doc/man/generated_txt/cargo-metadata.txt b/src/doc/man/generated_txt/cargo-metadata.txt index 8c9a8dd21..a2fb4e094 100644 --- a/src/doc/man/generated_txt/cargo-metadata.txt +++ b/src/doc/man/generated_txt/cargo-metadata.txt @@ -308,9 +308,9 @@ OUTPUT FORMAT ] } ], - /* The root package of the workspace. - This is null if this is a virtual workspace. Otherwise it is - the Package ID of the root package. + /* The package in the current working directory (if --manifest-path is not given). + This is null if there is a virtual workspace. Otherwise it is + the Package ID of the package. */ "root": "file:///path/to/my-package#0.1.0", }, diff --git a/src/doc/src/commands/cargo-metadata.md b/src/doc/src/commands/cargo-metadata.md index e742afdbc..97cf03b2a 100644 --- a/src/doc/src/commands/cargo-metadata.md +++ b/src/doc/src/commands/cargo-metadata.md @@ -312,9 +312,9 @@ The JSON output has the following format: ] } ], - /* The root package of the workspace. - This is null if this is a virtual workspace. Otherwise it is - the Package ID of the root package. + /* The package in the current working directory (if --manifest-path is not given). + This is null if there is a virtual workspace. Otherwise it is + the Package ID of the package. */ "root": "file:///path/to/my-package#0.1.0", }, diff --git a/src/etc/man/cargo-metadata.1 b/src/etc/man/cargo-metadata.1 index 4c7f6777e..9560e645e 100644 --- a/src/etc/man/cargo-metadata.1 +++ b/src/etc/man/cargo-metadata.1 @@ -314,9 +314,9 @@ The JSON output has the following format: ] } ], - /* The root package of the workspace. - This is null if this is a virtual workspace. Otherwise it is - the Package ID of the root package. + /* The package in the current working directory (if \-\-manifest\-path is not given). + This is null if there is a virtual workspace. Otherwise it is + the Package ID of the package. */ "root": "file:///path/to/my\-package#0.1.0", },