mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Optimize release build
by enabling lto, setting `codegen-units` to 1 and setting panic behavior to `abort`. On my `aarch64-apple-darwin` with `rustc 1.61.0`, this reduces the size of binary from 7.8M to 4.9M Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
f0e7fa0111
commit
c989ed0823
1 changed files with 5 additions and 0 deletions
|
@ -44,3 +44,8 @@ zip = "0.6.2"
|
|||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.9.0"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
|
Loading…
Add table
Reference in a new issue