From 34c49446f5593038dd831044677015f10e7c595c Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Thu, 21 Mar 2024 21:54:11 +0000 Subject: [PATCH] cargo: optimise for smaller binary sizes --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5e45705..0589443 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,13 @@ description = "A simple, featureful and blazingly fast memory-safe alternative t readme = "README.md" license = "MIT" +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" + [dependencies] clap = { version = "4.5.2", features = ["derive"] } colored = "2.1.0"