#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
#![warn(rust_2018_idioms)]
pub mod ot;
pub use openthread_sys as otsys;
#[cfg(target_os = "fuchsia")]
mod otfuchsia;
pub type OtBox<T> = ot::Box<T>;
pub type OtInstanceBox = ot::Box<ot::Instance>;
pub type OtMessageBox<'a> = ot::Box<ot::Message<'a>>;
#[macro_use]
pub mod prelude {
#![allow(unused_imports)]
pub use crate::{ot, otsys, OtBox, OtInstanceBox, OtMessageBox};
pub use ot::{
BackboneRouter as _, BorderRouter as _, Boxable as _, Dnssd as _, DnssdExt as _,
IntoOtError as _, Ip6 as _, Link as _, MessageBuffer as _, OtCastable as _, Reset as _,
SrpServer as _, State as _, Tasklets as _, Thread as _, Udp as _, Uptime as _,
};
pub use ot::TaskletsStreamExt as _;
pub use std::convert::{TryFrom as _, TryInto as _};
}
#[doc(hidden)]
#[macro_use]
pub(crate) mod prelude_internal {
#![allow(unused_imports)]
pub use crate::impl_ot_castable;
pub use crate::otsys::*;
pub use crate::prelude::*;
pub use core::convert::{TryFrom, TryInto};
pub use futures::prelude::*;
pub use num::FromPrimitive as _;
pub(crate) use ot::ascii_dump;
pub use ot::types::*;
pub use ot::{
BackboneRouter, BorderRouter, Boxable, Error, Instance, InstanceInterface, Ip6, Link,
Message, MessageBuffer, Platform, Result, SrpServer, Tasklets, Thread,
};
pub use static_assertions as sa;
pub use std::ffi::{CStr, CString};
pub use std::marker::PhantomData;
pub use std::os::raw::c_char;
pub use std::ptr::null;
pub use tracing::{debug, error, info, trace, warn};
}