From b875d960ab22162596c8e79c178a33b632d58aa8 Mon Sep 17 00:00:00 2001 From: Justin Perez Date: Sun, 5 Nov 2023 13:03:29 -0800 Subject: [PATCH] fix(rust): don't mark build deps as dev deps --- .../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));