From 61bf80ba060fbc22b3df75709a353bb22c92df2c Mon Sep 17 00:00:00 2001 From: Christof Weickhardt Date: Fri, 29 Apr 2022 09:40:39 +0000 Subject: [PATCH] feat: add release build optimizations --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 281ca28c..068c099f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,12 @@ pkg-fmt = "zip" [package.metadata.binstall.overrides.x86_64-apple-darwin] pkg-fmt = "zip" +# makes sure release builds are well optimized +[profile.release] +lto = "fat" +codegen-units = 1 +debug = true + [dependencies] anyhow = "1.0.57" async-trait = "0.1.52"