diff options
Diffstat (limited to 'embassy-executor/src/lib.rs')
| -rw-r--r-- | embassy-executor/src/lib.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs new file mode 100644 index 000000000..69e4aeb4b --- /dev/null +++ b/embassy-executor/src/lib.rs | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] | ||
| 2 | #![cfg_attr(feature = "nightly", feature(generic_associated_types, type_alias_impl_trait))] | ||
| 3 | #![cfg_attr(all(feature = "nightly", target_arch = "xtensa"), feature(asm_experimental_arch))] | ||
| 4 | #![allow(clippy::new_without_default)] | ||
| 5 | #![doc = include_str!("../../README.md")] | ||
| 6 | #![warn(missing_docs)] | ||
| 7 | |||
| 8 | // This mod MUST go first, so that the others see its macros. | ||
| 9 | pub(crate) mod fmt; | ||
| 10 | |||
| 11 | pub mod executor; | ||
| 12 | #[cfg(feature = "time")] | ||
| 13 | pub mod time; | ||
| 14 | |||
| 15 | #[cfg(feature = "nightly")] | ||
| 16 | pub use embassy_macros::{main, task}; | ||
| 17 | |||
| 18 | #[doc(hidden)] | ||
| 19 | /// Implementation details for embassy macros. DO NOT USE. | ||
| 20 | pub mod export { | ||
| 21 | pub use atomic_polyfill as atomic; | ||
| 22 | } | ||
