diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-11-26 20:39:21 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-11-26 21:09:44 +0100 |
| commit | 524eed5db57c73fe06777283f5992bc514f8fc50 (patch) | |
| tree | d299ad704f8896c1dbc4f717352bcd04d586dde9 /embassy-net/src/lib.rs | |
| parent | 6aa27d1a8e348a17dfdf0d994b26c95dfe7e23c5 (diff) | |
Update smoltcp, fix build issues with no ethernet.
Diffstat (limited to 'embassy-net/src/lib.rs')
| -rw-r--r-- | embassy-net/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 307179556..c4229446f 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -26,6 +26,8 @@ pub use tcp_socket::TcpSocket; | |||
| 26 | pub use smoltcp::phy::{DeviceCapabilities, Medium}; | 26 | pub use smoltcp::phy::{DeviceCapabilities, Medium}; |
| 27 | pub use smoltcp::time::Duration as SmolDuration; | 27 | pub use smoltcp::time::Duration as SmolDuration; |
| 28 | pub use smoltcp::time::Instant as SmolInstant; | 28 | pub use smoltcp::time::Instant as SmolInstant; |
| 29 | pub use smoltcp::wire::{HardwareAddress, IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; | 29 | #[cfg(feature = "medium-ethernet")] |
| 30 | pub use smoltcp::wire::{EthernetAddress, HardwareAddress}; | ||
| 31 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; | ||
| 30 | pub type Interface = smoltcp::iface::Interface<'static, device::DeviceAdapter>; | 32 | pub type Interface = smoltcp::iface::Interface<'static, device::DeviceAdapter>; |
| 31 | pub use smoltcp::{Error, Result}; | 33 | pub use smoltcp::{Error, Result}; |
