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.