Skip to content

Commit

Permalink
Update Cargo.toml (#2)
Browse files Browse the repository at this point in the history
panic = 'abort' :panic时直接终止程序,减小程序体积
配合upx可以将程序体积减小至721k(Windows10, x86_64)
  • Loading branch information
cq01 authored Sep 24, 2020
1 parent d45917d commit 96968dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ crossbeam = "0.7.3"
opt-level = 'z'
codegen-units = 1
lto = true
panic = 'abort'

[features]
nolog = []

0 comments on commit 96968dd

Please sign in to comment.