From 56433ee6676bfe1de2298f1496bfc3320027e1ae Mon Sep 17 00:00:00 2001 From: Yezzi Hsueh Date: Wed, 29 Nov 2023 23:52:41 +0800 Subject: [PATCH] chore: optimise release size --- Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cde49d9..38299a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,11 @@ serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } clap = { version = "4.4.7", features = ["derive"] } directories = "5.0.1" -base64 = "0.21.5" \ No newline at end of file +base64 = "0.21.5" + +[profile.release] +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" +strip = true