Fix build when with no socket features
parent
b143c5d69d
commit
857c012f14
|
@ -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
|
||||
|
|
|
@ -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` :/
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue