From cebe934d4c40626198aa96924bcec45e4314c797 Mon Sep 17 00:00:00 2001 From: Alex Pyattaev Date: Wed, 5 Mar 2025 19:07:18 +0200 Subject: [PATCH] enable optimizer in tests and procmacros --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a82f28e9d4cf10..cb50baa724afdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,14 @@ lto = false # Preserve the 'thin local LTO' for this build. split-debuginfo = "unpacked" lto = "thin" +# Enable basic optimizations for unittests +[profile.test] +opt-level = 1 + +# Enable optimizations for procmacros for faster recompile +[profile.dev.build-override] +opt-level = 1 + [workspace] members = [ "account-decoder",