Enable link-time optimization for release builds

This creates faster and smaller binaries, at the cost of longer
build times.
This commit is contained in:
Hugo Locurcio 2019-06-18 23:00:22 +02:00
parent 5b1121c9dd
commit e11cf98b74
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -74,3 +74,5 @@ name = "oxipng"
path = "src/lib.rs" path = "src/lib.rs"
[profile.dev] [profile.dev]
opt-level = 2 opt-level = 2
[profile.release]
lto = true