From d92974df5a934ff997334cc2b3099d8456a66a14 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 Jun 2022 23:49:42 +0800 Subject: [PATCH] reduce binary size. turns out debug symbols aren't free. --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7e9fa44e6..6424ce93c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -96,7 +96,8 @@ exclude = [ [profile.release] codegen-units = 1 # 1 better optimizations -debug = true # symbols are nice and they don't increase the size on Flash +debug = false +strip = true lto = "fat" incremental = true #panic = "abort" # Remove panic output, which can reduce file size