Skip to content

Commit 517b892

Browse files
committed
Give one more example for the --featuers CLI
The previous example confused me because I thought that `foo-feat` is the syntax for `foo/feat`. The "explicit" example should clarify that. closes #9305
1 parent beff1c9 commit 517b892

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/src/reference/features.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ For example:
369369
# This command is allowed with resolver = "2", regardless of which directory
370370
# you are in.
371371
cargo build -p foo -p bar --features foo-feat,bar-feat
372+
373+
# This explicit equivalent works with any resolver version:
374+
cargo build -p foo -p bar --features foo/foo-feat,bar/bar-feat
372375
```
373376

374377
Additionally, with `resolver = "1"`, the `--no-default-features` flag only

0 commit comments

Comments
 (0)