File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -267,10 +267,15 @@ error[E0432]: unresolved import `rand`
267
267
To fix this, edit the * Cargo.toml* file for the ` adder ` package and indicate
268
268
that ` rand ` is a dependency for it as well. Building the ` adder ` package will
269
269
add ` rand ` to the list of dependencies for ` adder ` in * Cargo.lock* , but no
270
- additional copies of ` rand ` will be downloaded. Cargo has ensured that every
270
+ additional copies of ` rand ` will be downloaded. Cargo will ensure that every
271
271
crate in every package in the workspace using the ` rand ` package will be using
272
- the same version, saving us space and ensuring that the crates in the workspace
273
- will be compatible with each other.
272
+ the same version as long as they specify compatible versions of ` rand ` , saving
273
+ us space and ensuring that the crates in the workspace will be compatible with
274
+ each other.
275
+
276
+ If crates in the workspace specify incompatible versions of the same dependency,
277
+ Cargo will resolve each of them, but will still try to resolve as few versions
278
+ as possible.
274
279
275
280
#### Adding a Test to a Workspace
276
281
You can’t perform that action at this time.
0 commit comments