embassy/embassy/src/lib.rs

28 lines
637 B
Rust
Raw Normal View History

#![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)]
#![cfg_attr(
feature = "nightly",
feature(generic_associated_types, type_alias_impl_trait)
)]
2021-10-17 22:55:43 +00:00
#![allow(clippy::new_without_default)]
2020-09-22 16:03:43 +00:00
// This mod MUST go first, so that the others see its macros.
pub(crate) mod fmt;
pub mod blocking_mutex;
pub mod channel;
pub mod executor;
2022-04-05 23:23:42 +00:00
pub mod mutex;
#[cfg(feature = "time")]
pub mod time;
2020-09-24 21:26:24 +00:00
pub mod util;
2022-04-05 23:23:42 +00:00
pub mod waitqueue;
2021-03-01 23:32:23 +00:00
#[cfg(feature = "nightly")]
pub use embassy_macros::{main, task};
2021-03-17 00:47:45 +00:00
#[doc(hidden)]
/// Implementation details for embassy macros. DO NOT USE.
pub mod export {
pub use atomic_polyfill as atomic;
}