2021-02-03 05:09:37 +01:00
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
2022-11-21 23:31:31 +01:00
|
|
|
#![cfg_attr(
|
|
|
|
feature = "nightly",
|
|
|
|
feature(type_alias_impl_trait, async_fn_in_trait, impl_trait_projections)
|
|
|
|
)]
|
|
|
|
#![cfg_attr(feature = "nightly", allow(incomplete_features))]
|
2021-02-03 05:09:37 +01:00
|
|
|
|
|
|
|
// This mod MUST go first, so that the others see its macros.
|
|
|
|
pub(crate) mod fmt;
|
|
|
|
|
2022-12-07 15:55:46 +01:00
|
|
|
pub mod device;
|
2021-02-03 05:09:37 +01:00
|
|
|
mod stack;
|
|
|
|
|
2022-05-23 03:50:43 +02:00
|
|
|
pub use stack::{Config, ConfigStrategy, Stack, StackResources};
|
2021-04-07 19:06:45 +02:00
|
|
|
|
|
|
|
#[cfg(feature = "tcp")]
|
2022-05-04 20:48:37 +02:00
|
|
|
pub mod tcp;
|
2021-02-03 05:09:37 +01:00
|
|
|
|
2022-07-28 10:25:47 +02:00
|
|
|
#[cfg(feature = "udp")]
|
|
|
|
pub mod udp;
|
|
|
|
|
2021-02-03 05:09:37 +01:00
|
|
|
// smoltcp reexports
|
2022-06-12 22:15:44 +02:00
|
|
|
pub use smoltcp::time::{Duration as SmolDuration, Instant as SmolInstant};
|
2021-11-26 20:39:21 +01:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
|
|
|
pub use smoltcp::wire::{EthernetAddress, HardwareAddress};
|
|
|
|
pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr};
|
2022-06-01 13:48:09 +02:00
|
|
|
#[cfg(feature = "proto-ipv6")]
|
|
|
|
pub use smoltcp::wire::{Ipv6Address, Ipv6Cidr};
|
2022-07-28 10:25:47 +02:00
|
|
|
#[cfg(feature = "udp")]
|
|
|
|
pub use smoltcp::{socket::udp::PacketMetadata, wire::IpListenEndpoint};
|