Skip to content

Commit

Permalink
Auto merge of rust-lang#13305 - linyihai:issue-13289, r=epage
Browse files Browse the repository at this point in the history
doc: add a heading to highlight "How to find features enabled on dependencies"

### What does this PR try to resolve?

Maybe fixes rust-lang#13289

Add a title to highlight "How to find features enabled on dependencies"?

### How should we test and review this PR?

### Additional information
  • Loading branch information
bors committed Jan 16, 2024
2 parents 350098d + aa9a1cf commit 1cff2ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/doc/src/reference/resolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ rand v0.8.5
└── ...
```

You might identify that it was an activated feature that caused `rand` to show up. To figure out which package activated the feature, you can add the `--edges features`
### Why was that feature on this dependency enabled?

You might identify that it was an activated feature that caused `rand` to show up. **To figure out which package activated the feature, you can add the `--edges features`**
```console
$ cargo tree --workspace --target all --all-features --edges features --invert rand
rand v0.8.5
Expand Down

0 comments on commit 1cff2ee

Please sign in to comment.