Skip to content

Commit edbcbff

Browse files
bors[bot]M1chaDirbaio
authored
Merge #671
671: fix socket feature check r=Dirbaio a=M1cha it requires you to have at least one socket type enabled but the feature `socket-dhcp` does not exist because it's name is `socket-dhcpv4`. So if that's only socket type you want enabled you weren't able to do that due to this broken check. Co-authored-by: Michael Zimmermann <sigmaepsilon92@gmail.com> Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2 parents 93d175f + 092aba1 commit edbcbff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ compile_error!("You must enable at least one of the following features: proto-ip
104104
feature = "socket-udp",
105105
feature = "socket-tcp",
106106
feature = "socket-icmp",
107-
feature = "socket-dhcp",
107+
feature = "socket-dhcpv4",
108108
feature = "socket-dns",
109109
))
110110
))]
111-
compile_error!("If you enable the socket feature, you must enable at least one of the following features: socket-raw, socket-udp, socket-tcp, socket-icmp, socket-dhcp, socket-dns");
111+
compile_error!("If you enable the socket feature, you must enable at least one of the following features: socket-raw, socket-udp, socket-tcp, socket-icmp, socket-dhcpv4, socket-dns");
112112

113113
#[cfg(all(
114114
feature = "socket",

0 commit comments

Comments
 (0)