Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workspace.default-members config that overrides implied --all #4743

Merged
merged 5 commits into from
Nov 29, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong - an earlier commit makes default-members work for non-virtual manifests too, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I forgot about that when writing the docs. Submitted #4784, thanks.

`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