From 99cc810aa6260797375e4421b0f4ff1c45217ade Mon Sep 17 00:00:00 2001 From: heisen-li Date: Wed, 24 Apr 2024 10:56:02 +0800 Subject: [PATCH] Adjust root package page content --- src/doc/src/reference/workspaces.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/doc/src/reference/workspaces.md b/src/doc/src/reference/workspaces.md index ad0d4175cee..14719956079 100644 --- a/src/doc/src/reference/workspaces.md +++ b/src/doc/src/reference/workspaces.md @@ -57,6 +57,9 @@ version = "0.1.0" # the current version, obeying semver authors = ["Alice ", "Bob "] ``` +Unless explicitly set through [`workspace.default-members`](#the-default-members-field), +the root package is considered as the only default member of the workspace. + ### Virtual workspace Alternatively, a `Cargo.toml` file can be created with a `[workspace]` section @@ -80,6 +83,9 @@ edition = "2021" # the edition, will have no effect on a resolver used in th authors = ["Alice ", "Bob "] ``` +Unless explicitly set through [`workspace.default-members`](#the-default-members-field), +every member of a virtual workspace is considered as a default member. + Note that in a virtual manifest the [`resolver = "2"`](resolver.md#resolver-versions) should be specified manually. It is usually deduced from the [`package.edition`][package-edition] field which is absent in virtual manifests and the edition field of a member