From: Simon Sapin Date: Thu, 23 Nov 2017 15:51:36 +0000 (+0100) Subject: Expand documentation for Workspace::default_members field X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~92^2^2~39^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=499a6788ade01be9412aa2d0dcbeaf43384cec4e;p=cargo.git Expand documentation for Workspace::default_members field --- diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index d9307526b..3dc50a6f2 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -46,7 +46,16 @@ pub struct Workspace<'cfg> { // set above. members: Vec, - // The subset of `members` that are “default”. + // The subset of `members` that are used by the + // `build`, `check`, `test`, and `bench` subcommands + // when no package is selected with `--package` / `-p` and `--all` + // is not used. + // + // This is set by the `default-members` config + // in the `[workspace]` section. + // When unset, this is the same as `members` for virtual workspaces + // (`--all` is implied) + // or only the root package for non-virtual workspaces. default_members: Vec, // True, if this is a temporary workspace created for the purposes of