diff options
Diffstat (limited to 'embassy-net/src/lib.rs')
| -rw-r--r-- | embassy-net/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 1c5ba103a..83d364715 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -16,6 +16,9 @@ pub use stack::{Config, ConfigStrategy, Stack, StackResources}; | |||
| 16 | #[cfg(feature = "tcp")] | 16 | #[cfg(feature = "tcp")] |
| 17 | pub mod tcp; | 17 | pub mod tcp; |
| 18 | 18 | ||
| 19 | #[cfg(feature = "udp")] | ||
| 20 | pub mod udp; | ||
| 21 | |||
| 19 | // smoltcp reexports | 22 | // smoltcp reexports |
| 20 | pub use smoltcp::phy::{DeviceCapabilities, Medium}; | 23 | pub use smoltcp::phy::{DeviceCapabilities, Medium}; |
| 21 | pub use smoltcp::time::{Duration as SmolDuration, Instant as SmolInstant}; | 24 | pub use smoltcp::time::{Duration as SmolDuration, Instant as SmolInstant}; |
| @@ -24,3 +27,5 @@ pub use smoltcp::wire::{EthernetAddress, HardwareAddress}; | |||
| 24 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; | 27 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; |
| 25 | #[cfg(feature = "proto-ipv6")] | 28 | #[cfg(feature = "proto-ipv6")] |
| 26 | pub use smoltcp::wire::{Ipv6Address, Ipv6Cidr}; | 29 | pub use smoltcp::wire::{Ipv6Address, Ipv6Cidr}; |
| 30 | #[cfg(feature = "udp")] | ||
| 31 | pub use smoltcp::{socket::udp::PacketMetadata, wire::IpListenEndpoint}; | ||
