Skip to main content

msrt_uart/
lib.rs

1#![doc = "UART adapters for MSRT."]
2#![cfg_attr(not(feature = "std"), no_std)]
3
4mod backend;
5mod event;
6mod traits;
7
8#[cfg(feature = "tokio")]
9mod frontend;
10#[cfg(all(test, feature = "tokio"))]
11mod tests;
12#[cfg(feature = "tokio")]
13mod tokio_error;
14
15pub use backend::UartBackend;
16pub use event::{UartBackendEvent, UartFrontendEvent};
17pub use msrt::endpoint::{EngineConfig, IntegrityConfig, MessageEvent, PeerState, SendFailedEvent};
18pub use traits::{UartError, UartIo, UartIoError, UartIoResult, UartResult};
19
20#[cfg(feature = "tokio")]
21pub use frontend::TokioUartFrontend;
22#[cfg(feature = "tokio")]
23pub use tokio_error::{TokioError, TokioResult};