From 9904454521d5d9123af3e73693b2c4745415524c Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Sun, 26 Jul 2020 02:06:51 +1200 Subject: [PATCH] Make the 'avr-std-stub' dependency optional This way, downstream users may user their own panic handlers and exception handling personality functions if they desire. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c537772..2d6afff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,8 @@ #![no_std] +#[cfg(feature = "avr-std-stub")] extern crate avr_std_stub; + pub use self::register::{Register, RegisterBits, RegisterValue}; pub use self::pin::{DataDirection, Pin};