From 55222fa3b6d199f5a700d1ba9964052915dfa4d2 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Tue, 1 Feb 2022 12:00:29 +0900 Subject: [PATCH] meta: optimize release binary for size saves over 2MB of total post-strip binary size on linux --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2078ca2..82f012d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,4 +3,6 @@ members = ["server", "client", "hostsfile", "shared", "publicip", "netlink-reque [profile.release] codegen-units = 1 -lto = "thin" +opt-level = "s" +lto = "fat" +panic = "abort"