From 01681ee6c3c5fc1b8a3adffd27cb030d203f7a1a Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 12 Aug 2024 20:48:54 -0500 Subject: [PATCH] Optimize binary size --- Cargo.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3f5a549..12d58a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,7 @@ syslog_rpc = { version = "0.1.0", path = "../syslog/syslog_rpc" } tar-no-std = "0.3.1" vfs_rpc = { version = "0.1.0", path = "../vfs/vfs_rpc" } -[profile.dev] -panic = "abort" - [profile.release] -panic = "abort" - +strip = true +lto = true +opt-level = "s"