From 6c0f8a6a014571cc7ca8d034c54a0848a31f76ff Mon Sep 17 00:00:00 2001 From: WildEgo Date: Sun, 23 Nov 2025 23:44:55 +0000 Subject: [PATCH] change: Make smaller binary. --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 32abd20..7677443 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,10 @@ memmap2 = "0.9" walkdir = "2.3" regex = "1.12.2" once_cell = "*" + +[profile.release] +codegen-units = 1 # Allows LLVM to perform better optimization. +lto = true # Enables link-time-optimizations. +opt-level = "s" # Prioritizes small binary size. Use `3` if you prefer speed. +panic = "abort" # Higher performance by disabling panic handlers. +strip = true # Ensures debug symbols are removed.