From d2178236acb058c2d12bf7a24b9c87710f0a495c Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Fri, 20 Oct 2023 12:00:30 +0300 Subject: [PATCH] all: codegen-units=1 and lto=true for release --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 319ed37..13c4029 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,9 @@ members = [ "admin", "query", ] + +[profile.release] +codegen-units = 1 +lto = true +# TODO: cargo 1.59 +# strip = "debuginfo"