try shrinking bin size

This commit is contained in:
Stephan Dilly 2020-04-08 00:44:13 +02:00
parent 936e965c17
commit c4880060ea
2 changed files with 8 additions and 1 deletions

View file

@ -39,4 +39,9 @@ timing=["scopetime/enabled"]
members=[
"asyncgit",
"scopetime",
]
]
[profile.release]
lto = true
opt-level = 'z' # Optimize for size.
codegen-units = 1

View file

@ -6,6 +6,8 @@ debug:
build-release:
cargo build --release
strip target/release/gitui
ls -lisah target/release/gitui
test:
cargo test --workspace