From 57366bba48defc28184d24a6b5ae3477f4145881 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 31 Jul 2024 21:15:28 +0200 Subject: [PATCH] Use a single codegen-unit for compilation as suggested in https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units to achieve reproducible builds. It can also enhance optimizations of the produced binary. Fixes #230 This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 5802645..c242c89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,7 @@ serde_json.workspace = true serde_with.workspace = true [profile.release] +codegen-units = 1 lto = "fat" panic = "abort"