Skip to main content

hick_smoltcp/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(test), no_std)]
3#![forbid(unsafe_code)]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![deny(missing_docs)]
6
7extern crate alloc;
8
9// At least one storage tier must be active. `atomic` (default) and `no-atomic`
10// select different mdns-proto Name/rdata backends; if both are enabled (e.g.
11// `--all-features`) `atomic` wins via mdns-proto's backend precedence, so the
12// no-atomic build must use `--no-default-features --features no-atomic`.
13#[cfg(not(any(feature = "atomic", feature = "no-atomic")))]
14compile_error!("hick-smoltcp: enable one storage tier — `atomic` (default) or `no-atomic`");
15
16pub mod constants;
17pub mod engine;
18mod onlink;
19mod smoltcp_io;
20pub mod time;
21pub mod udpio;
22
23pub use engine::Engine;
24pub use smoltcp_io::DualStack;
25pub use time::SmoltcpInstant;
26pub use udpio::{RecvMeta, SendError, UdpIo};