Make the std-stub optional

This allows people to provide their own `panic_handler`
This commit is contained in:
Jake Goulding 2020-07-25 09:54:43 -04:00
parent 572fb8be7c
commit c02a95baa5
2 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,11 @@ build = "core_generator/build.rs"
keywords = ["avr", "arduino", "uno"]
[features]
default = ["avr-std-stub"]
[dependencies]
avr-std-stub = "1.0"
avr-std-stub = { version = "1.0", optional = true }
target-cpu-macro = "0.1"
[build-dependencies]

View File

@ -9,8 +9,6 @@
#![no_std]
extern crate avr_std_stub;
pub use self::register::{Register, RegisterBits, RegisterValue};
pub use self::pin::{DataDirection, Pin};