fix: use opt-level 3 by default, and add a size profile

This commit is contained in:
Amaan Qureshi 2023-08-14 14:12:45 -04:00
parent 2d0a3d647b
commit 93450df85e

View file

@ -9,5 +9,9 @@ rust-version = "1.65"
[profile.release]
strip = true # Automatically strip symbols from the binary.
lto = true # Link-time optimization.
opt-level = "s" # Optimize for speed.
opt-level = 3 # Optimization level 3.
codegen-units = 1 # Maximum size reduction optimizations.
[profile.size]
inherits = "release"
opt-level = "s" # Optimize for size.