From 6b506d21ec2479d14499bed88124bedcc80ad284 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Sat, 4 Jun 2022 16:32:48 -0500 Subject: [PATCH] Enable LTO for release builds to fix blink example The LED blinks much too rapidly without LTO enabled. With LTO enabled, the LED blinks 1 second on, 1 second off. Fixes #34. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 82c0367..7f0e118 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,6 @@ edition = '2018' [dependencies] ruduino = "0.3" + +[profile.release] +lto = true