Fix build when with no socket features

v0.7.x
Dario Nieuwenhuis 2021-02-01 16:45:32 +01:00
parent b143c5d69d
commit 857c012f14
3 changed files with 9 additions and 4 deletions

View File

@ -22,6 +22,9 @@ jobs:
# Test default features.
- default
# Test minimal featureset
- std proto-ipv4
# Test features chosen to be as orthogonal as possible.
- std ethernet phy-raw_socket proto-ipv6 socket-udp
- std ethernet phy-tap_interface proto-ipv6 socket-udp

View File

@ -39,10 +39,11 @@ ethernet = []
"proto-igmp" = ["proto-ipv4"]
"proto-dhcpv4" = ["proto-ipv4", "socket-raw"]
"proto-ipv6" = []
"socket-raw" = []
"socket-udp" = []
"socket-tcp" = []
"socket-icmp" = []
"socket" = []
"socket-raw" = ["socket"]
"socket-udp" = ["socket"]
"socket-tcp" = ["socket"]
"socket-icmp" = ["socket"]
"async" = []
default = [
"std", "log", # needed for `cargo test --no-default-features --features default` :/

View File

@ -106,6 +106,7 @@ pub mod storage;
pub mod phy;
pub mod wire;
pub mod iface;
#[cfg(feature = "socket")]
pub mod socket;
pub mod time;
#[cfg(feature = "proto-dhcpv4")]