From 19ce30a5efc5b6f703e6a1d5fb41f0f2327253c1 Mon Sep 17 00:00:00 2001 From: Firstyear Date: Tue, 13 Apr 2021 12:04:27 +1000 Subject: [PATCH] Add lto thin (#410) --- kanidm_unix_int/Cargo.toml | 3 ++- kanidmd/Cargo.toml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kanidm_unix_int/Cargo.toml b/kanidm_unix_int/Cargo.toml index 94bc11d32..39a9cd187 100644 --- a/kanidm_unix_int/Cargo.toml +++ b/kanidm_unix_int/Cargo.toml @@ -9,7 +9,8 @@ documentation = "https://docs.rs/kanidm/latest/kanidm/" homepage = "https://github.com/kanidm/kanidm/" repository = "https://github.com/kanidm/kanidm/" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +lto = "thin" [lib] name = "kanidm_unix_common" diff --git a/kanidmd/Cargo.toml b/kanidmd/Cargo.toml index 2a710d86c..ae5c8ee4d 100644 --- a/kanidmd/Cargo.toml +++ b/kanidmd/Cargo.toml @@ -9,6 +9,9 @@ documentation = "https://docs.rs/kanidm/latest/kanidm/" homepage = "https://github.com/kanidm/kanidm/" repository = "https://github.com/kanidm/kanidm/" +[profile.release] +lto = "thin" + [lib] name = "kanidm" path = "src/lib/lib.rs"