43
43
However, Cargo allows [ renaming
44
44
dependencies] ( https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml ) ,
45
45
to refer to a crate by a different name than the one it was published under. If
46
- you use this feature, you may have multiple dependencies on exactly the same
47
- version of the same crate, as long as the dependencies have different names.
48
- For example:
46
+ you use this feature, you may have multiple dependencies on the same version of
47
+ the same crate, as long as the dependencies have different names. For example:
49
48
50
49
``` toml
51
50
[dependencies ]
@@ -79,7 +78,7 @@ specified by `CARGO_BIN_DIR_EXAMPLE_ARM`.
79
78
[ reference-level-explanation ] : #reference-level-explanation
80
79
81
80
Cargo allows specifying multiple dependencies on the same crate, as long as all
82
- such dependencies unify to the same version with the same features, and have
81
+ such dependencies resolve to the same version with the same features, and have
83
82
different dependency names specified. Cargo will make the dependency available
84
83
under each specified name.
85
84
@@ -99,7 +98,9 @@ Cargo will unify features and versions across all kinds of dependencies,
99
98
including multiple artifact dependencies, just as it does for multiple
100
99
dependencies on the same crate throughout a dependency tree. A dependency tree
101
100
may only include one semver-compatible version of a given crate, but may
102
- include multiple semver-incompatible versions of a given crate.
101
+ include multiple semver-incompatible versions of a given crate. Dependency
102
+ versions need not be textually identical, as long as they resolve to the same
103
+ version.
103
104
104
105
Building an artifact dependency for multiple targets may entail building
105
106
multiple copies of other dependencies, which must similarly unify within a
0 commit comments