From b9a5ab518d0079b7997048c5171f037b86d269fa Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 8 Jun 2023 12:14:31 +0000 Subject: [PATCH] build: use 1 codegen-units for release builds According to my measurements this reduced libdeltachat.so size by 3.3 MB, from 25.17 to 21.84 MB. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 4364a2d836..85649bf97a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,7 @@ opt-level = "z" lto = true panic = 'abort' opt-level = "z" +codegen-units = 1 [patch.crates-io] quinn-udp = { git = "https://github.com/quinn-rs/quinn", branch="main" }