From f0f08f298bc7fd8b60685d3cc11a02a3829b650b Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 29 Dec 2021 16:03:25 +0100 Subject: [PATCH] examples: stm32f1: Optimize for size on development builds Even the basic examples seemingly need to be build optimized for size to allow flashing to a bluepill --- examples/stm32f1/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/stm32f1/Cargo.toml b/examples/stm32f1/Cargo.toml index 84773b91b..765e91b5d 100644 --- a/examples/stm32f1/Cargo.toml +++ b/examples/stm32f1/Cargo.toml @@ -20,3 +20,6 @@ panic-probe = { version = "0.3", features = ["print-defmt"] } futures = { version = "0.3.17", default-features = false, features = ["async-await"] } heapless = { version = "0.7.5", default-features = false } nb = "1.0.0" + +[profile.dev] +opt-level = "s"