forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(metadata): Switch opaque ID from PackageID to PackageIDSpec
- Loading branch information
Showing
13 changed files
with
332 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,10 +53,10 @@ The JSON output has the following format: | |
"name": "my-package", | ||
/* The version of the package. */ | ||
"version": "0.1.0", | ||
/* The Package ID, an opaque and unique identifier for referring to the | ||
package. See "Compatibility" above for the stability guarantee. | ||
/* The Package ID for referring to the | ||
package within the document and as the `--package` argument to many commands | ||
*/ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The license value from the manifest, or null. */ | ||
"license": "MIT/Apache-2.0", | ||
/* The license-file value from the manifest, or null. */ | ||
|
@@ -242,13 +242,13 @@ The JSON output has the following format: | |
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
/* Array of default members of the workspace. | ||
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_default_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
// The resolved dependency graph for the entire workspace. The enabled | ||
// features are based on the enabled features for the "current" package. | ||
|
@@ -266,10 +266,10 @@ The JSON output has the following format: | |
"nodes": [ | ||
{ | ||
/* The Package ID of this node. */ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The dependencies of this package, an array of Package IDs. */ | ||
"dependencies": [ | ||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" | ||
"https://github.com/rust-lang/crates.io-index#[email protected]" | ||
], | ||
/* The dependencies of this package. This is an alternative to | ||
"dependencies" which contains additional information. In | ||
|
@@ -283,7 +283,7 @@ The JSON output has the following format: | |
*/ | ||
"name": "bitflags", | ||
/* The Package ID of the dependency. */ | ||
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||
"pkg": "https://github.com/rust-lang/crates.io-index#[email protected]" | ||
/* Array of dependency kinds. Added in Cargo 1.40. */ | ||
"dep_kinds": [ | ||
{ | ||
|
@@ -309,7 +309,7 @@ The JSON output has the following format: | |
This is null if this is a virtual workspace. Otherwise it is | ||
the Package ID of the root package. | ||
*/ | ||
"root": "my-package 0.1.0 (path+file:///path/to/my-package)" | ||
"root": "file:///path/to/my-package#0.1.0", | ||
}, | ||
/* The absolute path to the build directory where Cargo places its output. */ | ||
"target_directory": "/path/to/my-package/target", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,10 +49,10 @@ OUTPUT FORMAT | |
"name": "my-package", | ||
/* The version of the package. */ | ||
"version": "0.1.0", | ||
/* The Package ID, an opaque and unique identifier for referring to the | ||
package. See "Compatibility" above for the stability guarantee. | ||
/* The Package ID for referring to the | ||
package within the document and as the `--package` argument to many commands | ||
*/ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The license value from the manifest, or null. */ | ||
"license": "MIT/Apache-2.0", | ||
/* The license-file value from the manifest, or null. */ | ||
|
@@ -238,13 +238,13 @@ OUTPUT FORMAT | |
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
/* Array of default members of the workspace. | ||
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_default_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
// The resolved dependency graph for the entire workspace. The enabled | ||
// features are based on the enabled features for the "current" package. | ||
|
@@ -262,10 +262,10 @@ OUTPUT FORMAT | |
"nodes": [ | ||
{ | ||
/* The Package ID of this node. */ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The dependencies of this package, an array of Package IDs. */ | ||
"dependencies": [ | ||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" | ||
"https://github.com/rust-lang/crates.io-index#[email protected]" | ||
], | ||
/* The dependencies of this package. This is an alternative to | ||
"dependencies" which contains additional information. In | ||
|
@@ -279,7 +279,7 @@ OUTPUT FORMAT | |
*/ | ||
"name": "bitflags", | ||
/* The Package ID of the dependency. */ | ||
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||
"pkg": "https://github.com/rust-lang/crates.io-index#[email protected]" | ||
/* Array of dependency kinds. Added in Cargo 1.40. */ | ||
"dep_kinds": [ | ||
{ | ||
|
@@ -305,7 +305,7 @@ OUTPUT FORMAT | |
This is null if this is a virtual workspace. Otherwise it is | ||
the Package ID of the root package. | ||
*/ | ||
"root": "my-package 0.1.0 (path+file:///path/to/my-package)" | ||
"root": "file:///path/to/my-package#0.1.0", | ||
}, | ||
/* The absolute path to the build directory where Cargo places its output. */ | ||
"target_directory": "/path/to/my-package/target", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,10 +53,10 @@ The JSON output has the following format: | |
"name": "my-package", | ||
/* The version of the package. */ | ||
"version": "0.1.0", | ||
/* The Package ID, an opaque and unique identifier for referring to the | ||
package. See "Compatibility" above for the stability guarantee. | ||
/* The Package ID for referring to the | ||
package within the document and as the `--package` argument to many commands | ||
*/ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The license value from the manifest, or null. */ | ||
"license": "MIT/Apache-2.0", | ||
/* The license-file value from the manifest, or null. */ | ||
|
@@ -242,13 +242,13 @@ The JSON output has the following format: | |
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
/* Array of default members of the workspace. | ||
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_default_members": [ | ||
"my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"file:///path/to/my-package#0.1.0", | ||
], | ||
// The resolved dependency graph for the entire workspace. The enabled | ||
// features are based on the enabled features for the "current" package. | ||
|
@@ -266,10 +266,10 @@ The JSON output has the following format: | |
"nodes": [ | ||
{ | ||
/* The Package ID of this node. */ | ||
"id": "my-package 0.1.0 (path+file:///path/to/my-package)", | ||
"id": "file:///path/to/my-package#0.1.0", | ||
/* The dependencies of this package, an array of Package IDs. */ | ||
"dependencies": [ | ||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" | ||
"https://github.com/rust-lang/crates.io-index#[email protected]" | ||
], | ||
/* The dependencies of this package. This is an alternative to | ||
"dependencies" which contains additional information. In | ||
|
@@ -283,7 +283,7 @@ The JSON output has the following format: | |
*/ | ||
"name": "bitflags", | ||
/* The Package ID of the dependency. */ | ||
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||
"pkg": "https://github.com/rust-lang/crates.io-index#[email protected]" | ||
/* Array of dependency kinds. Added in Cargo 1.40. */ | ||
"dep_kinds": [ | ||
{ | ||
|
@@ -309,7 +309,7 @@ The JSON output has the following format: | |
This is null if this is a virtual workspace. Otherwise it is | ||
the Package ID of the root package. | ||
*/ | ||
"root": "my-package 0.1.0 (path+file:///path/to/my-package)" | ||
"root": "file:///path/to/my-package#0.1.0", | ||
}, | ||
/* The absolute path to the build directory where Cargo places its output. */ | ||
"target_directory": "/path/to/my-package/target", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,10 +55,10 @@ The JSON output has the following format: | |
"name": "my\-package", | ||
/* The version of the package. */ | ||
"version": "0.1.0", | ||
/* The Package ID, an opaque and unique identifier for referring to the | ||
package. See "Compatibility" above for the stability guarantee. | ||
/* The Package ID for referring to the | ||
package within the document and as the `\-\-package` argument to many commands | ||
*/ | ||
"id": "my\-package 0.1.0 (path+file:///path/to/my\-package)", | ||
"id": "file:///path/to/my\-package#0.1.0", | ||
/* The license value from the manifest, or null. */ | ||
"license": "MIT/Apache\-2.0", | ||
/* The license\-file value from the manifest, or null. */ | ||
|
@@ -244,13 +244,13 @@ The JSON output has the following format: | |
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_members": [ | ||
"my\-package 0.1.0 (path+file:///path/to/my\-package)", | ||
"file:///path/to/my\-package#0.1.0", | ||
], | ||
/* Array of default members of the workspace. | ||
Each entry is the Package ID for the package. | ||
*/ | ||
"workspace_default_members": [ | ||
"my\-package 0.1.0 (path+file:///path/to/my\-package)", | ||
"file:///path/to/my\-package#0.1.0", | ||
], | ||
// The resolved dependency graph for the entire workspace. The enabled | ||
// features are based on the enabled features for the "current" package. | ||
|
@@ -268,10 +268,10 @@ The JSON output has the following format: | |
"nodes": [ | ||
{ | ||
/* The Package ID of this node. */ | ||
"id": "my\-package 0.1.0 (path+file:///path/to/my\-package)", | ||
"id": "file:///path/to/my\-package#0.1.0", | ||
/* The dependencies of this package, an array of Package IDs. */ | ||
"dependencies": [ | ||
"bitflags 1.0.4 (registry+https://github.com/rust\-lang/crates.io\-index)" | ||
"https://github.com/rust\-lang/crates.io\-index#[email protected]" | ||
], | ||
/* The dependencies of this package. This is an alternative to | ||
"dependencies" which contains additional information. In | ||
|
@@ -285,7 +285,7 @@ The JSON output has the following format: | |
*/ | ||
"name": "bitflags", | ||
/* The Package ID of the dependency. */ | ||
"pkg": "bitflags 1.0.4 (registry+https://github.com/rust\-lang/crates.io\-index)", | ||
"pkg": "https://github.com/rust\-lang/crates.io\-index#[email protected]" | ||
/* Array of dependency kinds. Added in Cargo 1.40. */ | ||
"dep_kinds": [ | ||
{ | ||
|
@@ -311,7 +311,7 @@ The JSON output has the following format: | |
This is null if this is a virtual workspace. Otherwise it is | ||
the Package ID of the root package. | ||
*/ | ||
"root": "my\-package 0.1.0 (path+file:///path/to/my\-package)" | ||
"root": "file:///path/to/my\-package#0.1.0", | ||
}, | ||
/* The absolute path to the build directory where Cargo places its output. */ | ||
"target_directory": "/path/to/my\-package/target", | ||
|
Oops, something went wrong.