change: Make smaller binary.

master
WildEgo 2025-11-23 23:44:55 +00:00
parent bf2ae78108
commit 6c0f8a6a01
1 changed files with 7 additions and 0 deletions

View File

@ -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.