From 27ee9fb7b213f48b7a8328eef8e3666950c59f6e Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 12 Aug 2024 20:50:58 -0500 Subject: [PATCH] Optimize binary size --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0e77ffc..02a9110 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,8 @@ parking_lot = "0.12.3" syslog_msg_ipc = { version = "0.1.0", path = "syslog_msg_ipc" } syslog_rpc = { version = "0.1.0", path = "syslog_rpc" } syslog_structs = { version = "0.1.0", path = "syslog_structs" } + +[profile.release] +strip = true +lto = true +opt-level = "s"