From 2ebb231bff5bd778c569696cbbe9f83b81d0b6e2 Mon Sep 17 00:00:00 2001 From: sivadeilra Date: Thu, 20 Feb 2025 16:53:15 -0800 Subject: [PATCH] Optimize external packages (#3501) Co-authored-by: Arlie Davis --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a12ee5cd62..3e287c982a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,12 @@ exclude = [ "crates/targets/baseline", ] +# This compiles external dependencies (outside crates) with full optimization. +# This can improve run time while iterating on development (testing, etc.). +# This has NO EFFECT on end users using windows-* crates. +[profile.dev.package."*"] +opt-level = 2 + [workspace.lints.rust] rust_2018_idioms = { level = "warn", priority = -1 } missing_docs = "warn"