@@ -276,10 +276,20 @@ impl TcpSocket {
276276 /// Ok(())
277277 /// }
278278 /// ```
279- #[ cfg( all( unix, not( target_os = "solaris" ) , not( target_os = "illumos" ) ) ) ]
279+ #[ cfg( all(
280+ unix,
281+ not( target_os = "solaris" ) ,
282+ not( target_os = "illumos" ) ,
283+ not( target_os = "cygwin" ) ,
284+ ) ) ]
280285 #[ cfg_attr(
281286 docsrs,
282- doc( cfg( all( unix, not( target_os = "solaris" ) , not( target_os = "illumos" ) ) ) )
287+ doc( cfg( all(
288+ unix,
289+ not( target_os = "solaris" ) ,
290+ not( target_os = "illumos" ) ,
291+ not( target_os = "cygwin" ) ,
292+ ) ) )
283293 ) ]
284294 pub fn set_reuseport ( & self , reuseport : bool ) -> io:: Result < ( ) > {
285295 self . inner . set_reuse_port ( reuseport)
@@ -311,10 +321,20 @@ impl TcpSocket {
311321 /// Ok(())
312322 /// }
313323 /// ```
314- #[ cfg( all( unix, not( target_os = "solaris" ) , not( target_os = "illumos" ) ) ) ]
324+ #[ cfg( all(
325+ unix,
326+ not( target_os = "solaris" ) ,
327+ not( target_os = "illumos" ) ,
328+ not( target_os = "cygwin" ) ,
329+ ) ) ]
315330 #[ cfg_attr(
316331 docsrs,
317- doc( cfg( all( unix, not( target_os = "solaris" ) , not( target_os = "illumos" ) ) ) )
332+ doc( cfg( all(
333+ unix,
334+ not( target_os = "solaris" ) ,
335+ not( target_os = "illumos" ) ,
336+ not( target_os = "cygwin" ) ,
337+ ) ) )
318338 ) ]
319339 pub fn reuseport ( & self ) -> io:: Result < bool > {
320340 self . inner . reuse_port ( )
0 commit comments