From 27018047707c387840d9aac36c41b90f3792728c Mon Sep 17 00:00:00 2001 From: Justin Perez Date: Mon, 6 Nov 2023 11:22:47 -0800 Subject: [PATCH] fix(rust): don't mark build deps as dev deps (#889) --- .../rust/RustCliDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.ComponentDetection.Detectors/rust/RustCliDetector.cs b/src/Microsoft.ComponentDetection.Detectors/rust/RustCliDetector.cs index 561308365..64bbe2ac9 100644 --- a/src/Microsoft.ComponentDetection.Detectors/rust/RustCliDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/rust/RustCliDetector.cs @@ -110,7 +110,7 @@ private void TraverseAndRecordComponents( { try { - var isDevelopmentDependency = depInfo?.DepKinds.Any(x => x.Kind is Kind.Dev or Kind.Build) ?? false; + var isDevelopmentDependency = depInfo?.DepKinds.Any(x => x.Kind is Kind.Dev) ?? false; var (name, version) = ParseNameAndVersion(id); var detectedComponent = new DetectedComponent(new CargoComponent(name, version));