@@ -1583,6 +1583,7 @@ map_impl! {
1583
1583
1584
1584
////////////////////////////////////////////////////////////////////////////////
1585
1585
1586
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1586
1587
macro_rules! parse_ip_impl {
1587
1588
(
1588
1589
$( #[ $attr: meta] ) *
@@ -1735,16 +1736,17 @@ impl<'de> Deserialize<'de> for net::IpAddr {
1735
1736
}
1736
1737
}
1737
1738
1739
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1738
1740
parse_ip_impl ! {
1739
- #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1740
1741
net:: Ipv4Addr , "IPv4 address" , 4
1741
1742
}
1742
1743
1744
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1743
1745
parse_ip_impl ! {
1744
- #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1745
1746
net:: Ipv6Addr , "IPv6 address" , 16
1746
1747
}
1747
1748
1749
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1748
1750
macro_rules! parse_socket_impl {
1749
1751
(
1750
1752
$( #[ $attr: meta] ) *
@@ -1786,14 +1788,14 @@ impl<'de> Deserialize<'de> for net::SocketAddr {
1786
1788
}
1787
1789
}
1788
1790
1791
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1789
1792
parse_socket_impl ! {
1790
- #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1791
1793
net:: SocketAddrV4 , "IPv4 socket address" ,
1792
1794
|( ip, port) | net:: SocketAddrV4 :: new( ip, port) ,
1793
1795
}
1794
1796
1797
+ #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1795
1798
parse_socket_impl ! {
1796
- #[ cfg( any( feature = "std" , not( no_core_net) ) ) ]
1797
1799
net:: SocketAddrV6 , "IPv6 socket address" ,
1798
1800
|( ip, port) | net:: SocketAddrV6 :: new( ip, port, 0 , 0 ) ,
1799
1801
}
0 commit comments