From b44e94d312aa5c347ba2349a4223d44a9d926892 Mon Sep 17 00:00:00 2001 From: DanielMowitz Date: Thu, 24 Aug 2023 17:16:01 +0200 Subject: [PATCH] Added some binary size optimizations to the release build profile. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4b536bb..caa8cc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,7 @@ tokio = "1" chrono = "0.4" async-std = "1.12" +[profile.release] +strip = true # Automatically strip symbols from the binary. +lto = true # Enable link-time-optimizations, which might reduce dead code and provide smaller binaries. +panic = "abort" # Don't include unwinding code for realease builds, panics just abort execution. \ No newline at end of file