diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-11 14:17:11 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-11 14:17:11 +0000 |
| commit | 6ffca81a38d2c7f57da667ff49b4296c4eba78e2 (patch) | |
| tree | 43b1ce2ccac5bda85e805a87ec1e71e259f0a970 /embassy-net/src/lib.rs | |
| parent | 6cae87ee5da4e137fa3990b81cdb53aeebc676e0 (diff) | |
| parent | ef473827a2beaca120f45fbe490f84a0be7d381d (diff) | |
Merge #880
880: Add UDP socket support r=Dirbaio a=arturkow2000
Co-authored-by: Artur Kowalski <[email protected]>
Co-authored-by: Artur Kowalski <[email protected]>
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}; | ||
