From bff66f8fa796e305df93f28d9a5e352eb51596e5 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 26 Apr 2018 01:52:07 +0200 Subject: make compilable on stable --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 6af60d7..802a2d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,19 +9,18 @@ #![deny(missing_docs)] #![deny(warnings)] -#![feature(asm)] -#![feature(const_fn)] +#![cfg_attr(feature = "inline-asm", feature(asm))] #![no_std] extern crate aligned; extern crate bare_metal; +#[cfg(feature = "singleton")] extern crate untagged_option; extern crate volatile_register; #[macro_use] mod macros; -#[macro_use] pub mod asm; pub mod exception; pub mod interrupt; @@ -32,4 +31,7 @@ pub mod peripheral; pub mod register; pub use peripheral::Peripherals; + +#[cfg(feature = "singleton")] +#[doc(hidden)] pub use untagged_option::UntaggedOption; -- cgit v1.2.3