From 0dad298810a921777bf9ed0dc84dcd773a270580 Mon Sep 17 00:00:00 2001 From: vinoca Date: Sat, 14 Sep 2024 10:54:55 +0800 Subject: [PATCH] chore(release): add some release options to optimize the size of the binary. --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4ab4671..87a2670 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,10 @@ members = [ "fake-tcp", "phantun", ] + +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort"