From c02a95baa5894fa3f977a0b4a7d58066f4a1d30b Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Sat, 25 Jul 2020 09:54:43 -0400 Subject: [PATCH] Make the std-stub optional This allows people to provide their own `panic_handler` --- Cargo.toml | 5 ++++- src/lib.rs | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 09125be..3c20052 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/lib.rs b/src/lib.rs index 81759f6..c537772 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,8 +9,6 @@ #![no_std] -extern crate avr_std_stub; - pub use self::register::{Register, RegisterBits, RegisterValue}; pub use self::pin::{DataDirection, Pin};