From 191ef7573843b258ccc860f04bb0bdc463a5d6a4 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Mon, 16 Sep 2024 18:00:32 +0200 Subject: [PATCH] feat: minimize binary artifact size Signed-off-by: Roman Volosatovs --- Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ecdd233..a0b8575 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,17 @@ edition.workspace = true license.workspace = true repository.workspace = true +[profile.release.package.west-passthrough] +opt-level = 's' +strip = true + +[profile.release.package.west-sys] +opt-level = 's' +strip = true + +[profile.release] +lto = true + [workspace] members = ["crates/*", "tests/components/*"]