Skip to content

Commit 36e5bf1

Browse files
committed
Supplement the content about membership in the root package
1 parent 90bfa4a commit 36e5bf1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/doc/src/reference/workspaces.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ In the `Cargo.toml`, the `[workspace]` table supports the following sections:
3333
* [`[replace]`](overriding-dependencies.md#the-replace-section) --- Override dependencies (deprecated).
3434
* [`[profile]`](profiles.md) --- Compiler settings and optimizations.
3535

36-
## Creating a Workpaces
37-
38-
todo!:Added example of creating a workspace.
39-
4036
## The `[workspace]` section
4137

4238
To create a workspace, you add the `[workspace]` table to a `Cargo.toml`:
@@ -55,7 +51,6 @@ If the [`[workspace]` section](#the-workspace-section) is added to a
5551
the *root package* of the workspace.
5652

5753
Example:
58-
5954
```toml
6055
[workspace]
6156

@@ -65,6 +60,9 @@ version = "0.1.0" # the current version, obeying semver
6560
authors = ["Alice <[email protected]>", "Bob <[email protected]>"]
6661
```
6762

63+
Under [workspace](#the-workspace-section), you can specify which members the workspace has through
64+
[workspace.members filed](#the-members-and-exclude-fields) .
65+
6866
If no other members are specified in [workspace.members filed](#the-members-and-exclude-fields)
6967
in `Cargo.toml` in the workspace root directory, the root package will
7068
become the default workspace member.

0 commit comments

Comments
 (0)