From 894b4e19bcf5babf12d3d3cd22bacbaaff0f6d58 Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Thu, 23 Jan 2025 01:12:42 +0800 Subject: [PATCH] cargo: make binary small --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2aa5feb..377da54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,9 @@ edition = "2021" [dependencies] ignore = "0.4.23" + +[profile.release] +strip = true +lto = true +codegen-units = 1 +opt-level = "z"