Add option "lto" to release build to reduce the binary size.

This commit is contained in:
Harald Kube 2021-03-01 00:54:27 +01:00
parent 27cf849d8c
commit 4cdf27a949

View file

@ -9,6 +9,10 @@ edition = "2018"
[target.armv7-unknown-linux-musleabihf.dependencies]
rppal = { version = "0.11.3", features = ["hal"] }
[profile.release]
lto = true
[features]
rpi_gpio = ["rppal"]