Skip to main content

hick_embassy/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(test), no_std)]
3#![forbid(unsafe_code)]
4#![deny(missing_docs)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7extern crate alloc;
8
9// At least one storage tier must be active (propagated to `hick-smoltcp` /
10// `mdns-proto`). `atomic` (default) and `no-atomic` select different backends; if
11// both are on (e.g. `--all-features`) `atomic` wins, so the no-atomic build needs
12// `--no-default-features --features no-atomic`.
13#[cfg(not(any(feature = "atomic", feature = "no-atomic")))]
14compile_error!("hick-embassy: enable one storage tier — `atomic` (default) or `no-atomic`");
15
16mod driver;
17mod io;
18mod mdns;
19pub mod time;
20
21pub use driver::run;
22pub use io::DualUdp;
23pub use mdns::MdnsState;
24pub use time::EmbassyInstant;