From e5f7d94f77026d2afbc35817f574d4c692212447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 23 Jan 2025 21:29:11 +0100 Subject: [PATCH] feat: tune compilation for size Reduce size by setting `codegen-units = 1` in release mode. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 89197a6..0817c4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,7 @@ opt-level = "s" panic = "abort" lto = true strip = true +codegen-units = 1 [profile.dev] debug = 0