From 4cdf27a9490675333144a41b1dbe2be183c58b8e Mon Sep 17 00:00:00 2001 From: Harald Kube Date: Mon, 1 Mar 2021 00:54:27 +0100 Subject: [PATCH] Add option "lto" to release build to reduce the binary size. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dd675ab..b1d271c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]