From e696653852eb8305f9f295c58e9511c7d8635b4e Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Tue, 26 Sep 2023 18:52:38 +0200 Subject: [PATCH] Set lto option to true in the release profile In this way we do not leave inside the binaries every Sifis-Home library symbol, but only the ones effectively used by a programmer --- door/Cargo.toml | 3 +++ fridge/Cargo.toml | 3 +++ lamp/Cargo.toml | 3 +++ sink/Cargo.toml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/door/Cargo.toml b/door/Cargo.toml index 9d6ed63..9f7862d 100644 --- a/door/Cargo.toml +++ b/door/Cargo.toml @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } anyhow = "1.0.75" assert_cmd = "2.0.12" tempfile = "3.8.0" + +[profile.release] +lto = true diff --git a/fridge/Cargo.toml b/fridge/Cargo.toml index 6e2566e..37699e6 100644 --- a/fridge/Cargo.toml +++ b/fridge/Cargo.toml @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } anyhow = "1.0.75" assert_cmd = "2.0.12" tempfile = "3.8.0" + +[profile.release] +lto = true diff --git a/lamp/Cargo.toml b/lamp/Cargo.toml index d81c0d2..c7fc174 100644 --- a/lamp/Cargo.toml +++ b/lamp/Cargo.toml @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } anyhow = "1.0.75" assert_cmd = "2.0.12" tempfile = "3.8.0" + +[profile.release] +lto = true diff --git a/sink/Cargo.toml b/sink/Cargo.toml index 5f29891..dc59844 100644 --- a/sink/Cargo.toml +++ b/sink/Cargo.toml @@ -13,3 +13,6 @@ tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } anyhow = "1.0.75" assert_cmd = "2.0.12" tempfile = "3.8.0" + +[profile.release] +lto = true