Add option "lto" to release build to reduce the binary size.
This commit is contained in:
parent
27cf849d8c
commit
4cdf27a949
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ edition = "2018"
|
||||||
[target.armv7-unknown-linux-musleabihf.dependencies]
|
[target.armv7-unknown-linux-musleabihf.dependencies]
|
||||||
rppal = { version = "0.11.3", features = ["hal"] }
|
rppal = { version = "0.11.3", features = ["hal"] }
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
rpi_gpio = ["rppal"]
|
rpi_gpio = ["rppal"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue