aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-26 01:52:07 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-26 01:52:07 +0200
commitbff66f8fa796e305df93f28d9a5e352eb51596e5 (patch)
treec6878210d90f8e7e8029a36cf8ebf23326c4f592 /src/lib.rs
parent00d6faae149c062e79a822b8d46b6b5e7e972f57 (diff)
downloadcortex-m-bff66f8fa796e305df93f28d9a5e352eb51596e5.tar.gz
cortex-m-bff66f8fa796e305df93f28d9a5e352eb51596e5.tar.zst
cortex-m-bff66f8fa796e305df93f28d9a5e352eb51596e5.zip
make compilable on stable
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 5 insertions, 3 deletions
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;