From 25671d3495dc822459e805cb0b3a4dedff439e7a Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Fri, 18 Dec 2020 13:39:52 -0800 Subject: [PATCH] path is absolute path --- src/doc/man/cargo-metadata.md | 2 +- src/doc/man/generated_txt/cargo-metadata.txt | 2 +- src/doc/src/commands/cargo-metadata.md | 2 +- src/etc/man/cargo-metadata.1 | 2 +- tests/testsuite/metadata.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/doc/man/cargo-metadata.md b/src/doc/man/cargo-metadata.md index 01feab345..33951fddd 100644 --- a/src/doc/man/cargo-metadata.md +++ b/src/doc/man/cargo-metadata.md @@ -86,7 +86,7 @@ The output has the following format: /* The file system path for a local path dependency. not present if not a path dependency. */ - "path": "path/to/dep", + "path": "/path/to/dep", /* A string of the URL of the registry this dependency is from. If not specified or null, the dependency is from the default registry (crates.io). diff --git a/src/doc/man/generated_txt/cargo-metadata.txt b/src/doc/man/generated_txt/cargo-metadata.txt index 4b2dc49d8..8db6cc03a 100644 --- a/src/doc/man/generated_txt/cargo-metadata.txt +++ b/src/doc/man/generated_txt/cargo-metadata.txt @@ -81,7 +81,7 @@ OUTPUT FORMAT /* The file system path for a local path dependency. not present if not a path dependency. */ - "path": "path/to/dep", + "path": "/path/to/dep", /* A string of the URL of the registry this dependency is from. If not specified or null, the dependency is from the default registry (crates.io). diff --git a/src/doc/src/commands/cargo-metadata.md b/src/doc/src/commands/cargo-metadata.md index fe780cc36..5aa7d2f63 100644 --- a/src/doc/src/commands/cargo-metadata.md +++ b/src/doc/src/commands/cargo-metadata.md @@ -86,7 +86,7 @@ The output has the following format: /* The file system path for a local path dependency. not present if not a path dependency. */ - "path": "path/to/dep", + "path": "/path/to/dep", /* A string of the URL of the registry this dependency is from. If not specified or null, the dependency is from the default registry (crates.io). diff --git a/src/etc/man/cargo-metadata.1 b/src/etc/man/cargo-metadata.1 index 0016b578e..7a8809b49 100644 --- a/src/etc/man/cargo-metadata.1 +++ b/src/etc/man/cargo-metadata.1 @@ -83,7 +83,7 @@ The output has the following format: /* The file system path for a local path dependency. not present if not a path dependency. */ - "path": "path/to/dep", + "path": "/path/to/dep", /* A string of the URL of the registry this dependency is from. If not specified or null, the dependency is from the default registry (crates.io). diff --git a/tests/testsuite/metadata.rs b/tests/testsuite/metadata.rs index 25d91c3df..02d5590b8 100644 --- a/tests/testsuite/metadata.rs +++ b/tests/testsuite/metadata.rs @@ -1984,7 +1984,7 @@ fn deps_with_bin_only() { "rename": null, "optional": false, "uses_default_features": true, - "manifest_path": "[..]/bdep/Cargo.toml", + "manifest_path": "[..]/bdep", "features": [], "target": null, "registry": null