Skip to content

Commit

Permalink
Give one more example for the --featuers CLI
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matklad committed Mar 29, 2021
1 parent beff1c9 commit 517b892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/src/reference/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ For example:
# This command is allowed with resolver = "2", regardless of which directory
# you are in.
cargo build -p foo -p bar --features foo-feat,bar-feat

# This explicit equivalent works with any resolver version:
cargo build -p foo -p bar --features foo/foo-feat,bar/bar-feat
```

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

0 comments on commit 517b892

Please sign in to comment.