From 03cfd4da5fd6affe1d2b57688b6ac46b45b9786b Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Mon, 12 Jun 2023 15:59:45 +0200 Subject: [PATCH] chore: improve release build options --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 046bba5..189f8d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,15 @@ members = [ "xtask" ] +[profile.release] +lto = true +codegen-units = 1 + +[profile.optimized] +inherits = "release" +lto = false +codegen-units = 16 + [dependencies] chrono = "0.4" clap = "4.2.7"