From 6bf7803b998d99a75c0f4d601101bb7e45767925 Mon Sep 17 00:00:00 2001 From: Karcsesz Date: Thu, 15 Feb 2024 00:13:40 +0100 Subject: [PATCH] Greatly reduce release build size Courtesy of @Ryze@equestria.social --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 169a736..0fafa31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,4 +25,9 @@ reqwest = { version = "0.11.24", optional = true, default-features = false, feat tempfile = { version = "3.10.0", optional = true } which = { version = "6.0.0", optional = true } nix = { version = "0.27.1", optional = true, default-features = false, features = ["signal"] } -urlencoding = { version = "2.1.3"} \ No newline at end of file +urlencoding = { version = "2.1.3"} + +[profile.release] # 💛 @Ryze@equestria.social +strip = "symbols" +lto = "fat" +codegen-units = 1 \ No newline at end of file