From 70926502f16b6367e5007e4a74514542d60ef67d Mon Sep 17 00:00:00 2001 From: Marco Radocchia Date: Sat, 16 Jul 2022 23:01:54 +0200 Subject: [PATCH] Added [profile.release] options to Cargo.toml --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index aa48f26..b3c1149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,7 @@ categories = ["command-line-utilities", "science"] dht22_pi = { git = "https://github.com/marcoradocchia/dht22_pi" } clap = { version = "3.2.8", features = ["derive"] } chrono = { version = "0.4.19" } + +[profile.release] +lto = true # link-time-optimization +strip = true # strip symbols from binary