From 4590d8b2afee51e808e9580405e4cb3ed42f1c3b Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 7 Jul 2024 16:34:47 +0300 Subject: [PATCH] feat: Make the executable little small Signed-off-by: Awiteb Reviewed-by: Amjad Alsharafi --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 998b875..158da2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,4 +27,8 @@ salvo_core = { version = "0.68.3", default-features = false, features = ["rustls salvo-oapi = { version = "0.68.3", default-features = false, features = ["rapidoc","redoc","scalar","swagger-ui"] } [profile.release] -strip = true # Automatically strip symbols from the binary. +strip = true +panic = "abort" +codegen-units = 1 +lto = true +