fix: use opt-level 3 by default, and add a size profile
This commit is contained in:
parent
2d0a3d647b
commit
93450df85e
1 changed files with 5 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue