1#![no_std]
2#![doc = include_str!("../README.md")]
3#![warn(missing_docs)]
4#![warn(clippy::missing_safety_doc)]
5#![deny(clippy::unnecessary_safety_doc)]
6#![deny(clippy::unnecessary_safety_comment)]
7
8#[cfg(test)]
9extern crate std;
10
11#[cfg(feature = "alloc")]
12extern crate alloc;
13
14use embedded_io_async as eio;
15
16#[cfg(all(feature = "bump", feature = "alloc"))]
17compile_error!("You may not enable both `bump` and `alloc` features.");
18
19#[cfg(all(feature = "log", feature = "defmt"))]
20compile_error!("You may not enable both `log` and `defmt` features.");
21
22#[cfg(all(test, not(any(feature = "bump", feature = "alloc"))))]
23compile_error!("Enable either one of `bump` or `alloc` features for testing.");
24
25mod bytes;
26mod fmt;
27mod header;
28mod io;
29mod packet;
30
31pub mod buffer;
32pub mod client;
33pub mod config;
34pub mod session;
35pub mod types;
36
37pub use bytes::Bytes;
38
39#[cfg(test)]
40mod test;
41
42#[cfg(feature = "v3")]
43mod v3;
44#[cfg(feature = "v5")]
45mod v5;