Skip to content

Commit 03a561a

Browse files
Add --all-features per issue #894 (#897)
* Add --all-features per issue #894 * Fix formatting. --------- Co-authored-by: Rob Jellinghaus <[email protected]>
1 parent 2701804 commit 03a561a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.ComponentDetection.Detectors/rust/RustCliDetector.cs

+2
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ protected override async Task OnFileFoundAsync(ProcessRequest processRequest, ID
6464
return;
6565
}
6666

67+
// Use --all-features to ensure that even optional feature dependencies are detected.
6768
var cliResult = await this.cliService.ExecuteCommandAsync(
6869
"cargo",
6970
null,
7071
"metadata",
72+
"--all-features",
7173
"--manifest-path",
7274
componentStream.Location,
7375
"--format-version=1",

0 commit comments

Comments
 (0)