From 73f6465960da892e60714b7f1702151320719d00 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Mon, 17 Mar 2025 13:03:20 +0100 Subject: [PATCH] Update Cargo profiles --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 385692dc..5cada58f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -106,9 +106,13 @@ accesskit = "0.17.0" accesskit_winit = "0.23.0" time = "0.3.36" +[profile.dev.package."*"] +opt-level = 2 # Dependencies are rarely rebuilt, so we can spend time optimizing them. + [profile.ci] inherits = "dev" debug = 0 # Don't compile debug info to reduce compilation artifact size for cache benefits. strip = "debuginfo" # Implied by debug = 0 since Rust 1.77, but still needed for an older MSRV. [profile.ci.package."*"] debug-assertions = true # Keep always on for dependencies for cache reuse. +opt-level = "s" # Optimize dependencies for cache reuse.