Skip to content

Commit

Permalink
Document workspace.default-members
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Nov 29, 2017
1 parent 1240f42 commit 82d563b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/doc/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,19 @@ crate will be treated as a normal package, as well as a workspace. If the
manifest*.

When working with *virtual manifests*, package-related cargo commands, like
`cargo build`, default to all packages in the workspace as if `--all` was used.
This can be changed by passing a `--package` or `-p` command-line parameters.
`cargo build`, default to the set of packages specified by the `default-members`
configuration:

```toml
[workspace]
members = ["path/to/member1", "path/to/member2", "path/to/member3/*"]

# The members that commands like `cargo build` apply to by deault.
# This must expand to a subset of `members`.
# Optional key, defaults to the same as `members`
# (as if `--all` were used on the command line).
default-members = ["path/to/member2", "path/to/member3/*"]
```

# The project layout

Expand Down

0 comments on commit 82d563b

Please sign in to comment.