From aa9a1cfa4057cdbc29cd95daacb208267cdd5c4c Mon Sep 17 00:00:00 2001 From: Lin Yihai Date: Tue, 16 Jan 2024 23:45:41 +0800 Subject: [PATCH] doc: add a heading to highlight "How to find features enabled on dependencies" --- src/doc/src/reference/resolver.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/doc/src/reference/resolver.md b/src/doc/src/reference/resolver.md index 9157e22de4d..a7fea8a071f 100644 --- a/src/doc/src/reference/resolver.md +++ b/src/doc/src/reference/resolver.md @@ -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