mirror of
https://github.com/rust-lang/cargo
synced 2024-11-05 18:50:39 +00:00
docs(ref): Add a caution about default-members with root package
This commit is contained in:
parent
2289026d70
commit
50adf47c18
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ members = ["path/to/member1", "path/to/member2", "path/to/member3/*"]
|
|||
default-members = ["path/to/member2", "path/to/member3/foo"]
|
||||
```
|
||||
|
||||
> Note: when a [root package](#root-package) is present,
|
||||
> you can only operate on it using `--package` and `--workspace` flags.
|
||||
|
||||
When unspecified, the [root package](#root-package) will be used.
|
||||
In the case of a [virtual workspace](#virtual-workspace), all members will be used
|
||||
(as if `--workspace` were specified on the command-line).
|
||||
|
|
Loading…
Reference in a new issue