2021-02-03 04:09:37 +00:00
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
2021-10-17 22:55:43 +00:00
|
|
|
#![allow(clippy::new_without_default)]
|
2022-05-19 03:54:15 +00:00
|
|
|
#![feature(generic_associated_types, type_alias_impl_trait)]
|
2021-02-03 04:09:37 +00:00
|
|
|
|
|
|
|
// This mod MUST go first, so that the others see its macros.
|
|
|
|
pub(crate) mod fmt;
|
|
|
|
|
|
|
|
mod device;
|
|
|
|
mod packet_pool;
|
|
|
|
mod stack;
|
|
|
|
|
|
|
|
pub use device::{Device, LinkState};
|
2021-06-07 05:30:38 +00:00
|
|
|
pub use packet_pool::{Packet, PacketBox, PacketBoxExt, PacketBuf, MTU};
|
2022-05-23 01:50:43 +00:00
|
|
|
pub use stack::{Config, ConfigStrategy, Stack, StackResources};
|
2021-04-07 17:06:45 +00:00
|
|
|
|
|
|
|
#[cfg(feature = "tcp")]
|
2022-05-04 18:48:37 +00:00
|
|
|
pub mod tcp;
|
2021-02-03 04:09:37 +00:00
|
|
|
|
|
|
|
// smoltcp reexports
|
|
|
|
pub use smoltcp::phy::{DeviceCapabilities, Medium};
|
2022-06-12 20:15:44 +00:00
|
|
|
pub use smoltcp::time::{Duration as SmolDuration, Instant as SmolInstant};
|
2021-11-26 19:39:21 +00:00
|
|
|
#[cfg(feature = "medium-ethernet")]
|
|
|
|
pub use smoltcp::wire::{EthernetAddress, HardwareAddress};
|
|
|
|
pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr};
|
2022-06-01 11:48:09 +00:00
|
|
|
#[cfg(feature = "proto-ipv6")]
|
|
|
|
pub use smoltcp::wire::{Ipv6Address, Ipv6Cidr};
|