@@ -18,6 +18,7 @@ use std::net::{Ipv4Addr, Ipv6Addr};
18
18
feature = "all" ,
19
19
any(
20
20
target_os = "ios" ,
21
+ target_os = "visionos" ,
21
22
target_os = "macos" ,
22
23
target_os = "tvos" ,
23
24
target_os = "watchos" ,
@@ -31,6 +32,7 @@ use std::num::NonZeroU32;
31
32
target_os = "android" ,
32
33
target_os = "freebsd" ,
33
34
target_os = "ios" ,
35
+ target_os = "visionos" ,
34
36
target_os = "linux" ,
35
37
target_os = "macos" ,
36
38
target_os = "tvos" ,
@@ -46,6 +48,7 @@ use std::os::unix::ffi::OsStrExt;
46
48
target_os = "android" ,
47
49
target_os = "freebsd" ,
48
50
target_os = "ios" ,
51
+ target_os = "visionos" ,
49
52
target_os = "linux" ,
50
53
target_os = "macos" ,
51
54
target_os = "tvos" ,
@@ -63,6 +66,7 @@ use std::{io, slice};
63
66
64
67
#[ cfg( not( any(
65
68
target_os = "ios" ,
69
+ target_os = "visionos" ,
66
70
target_os = "macos" ,
67
71
target_os = "tvos" ,
68
72
target_os = "watchos" ,
@@ -160,13 +164,15 @@ pub(crate) use libc::IP_RECVTOS;
160
164
pub ( crate ) use libc:: IP_TOS ;
161
165
#[ cfg( not( any(
162
166
target_os = "ios" ,
167
+ target_os = "visionos" ,
163
168
target_os = "macos" ,
164
169
target_os = "tvos" ,
165
170
target_os = "watchos" ,
166
171
) ) ) ]
167
172
pub ( crate ) use libc:: SO_LINGER ;
168
173
#[ cfg( any(
169
174
target_os = "ios" ,
175
+ target_os = "visionos" ,
170
176
target_os = "macos" ,
171
177
target_os = "tvos" ,
172
178
target_os = "watchos" ,
@@ -202,6 +208,7 @@ pub(crate) use libc::{
202
208
target_os = "haiku" ,
203
209
target_os = "illumos" ,
204
210
target_os = "ios" ,
211
+ target_os = "visionos" ,
205
212
target_os = "macos" ,
206
213
target_os = "netbsd" ,
207
214
target_os = "nto" ,
@@ -217,6 +224,7 @@ pub(crate) use libc::{IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP};
217
224
target_os = "haiku" ,
218
225
target_os = "illumos" ,
219
226
target_os = "ios" ,
227
+ target_os = "visionos" ,
220
228
target_os = "macos" ,
221
229
target_os = "netbsd" ,
222
230
target_os = "openbsd" ,
@@ -236,6 +244,7 @@ pub(crate) use libc::{
236
244
target_os = "fuchsia" ,
237
245
target_os = "illumos" ,
238
246
target_os = "ios" ,
247
+ target_os = "visionos" ,
239
248
target_os = "linux" ,
240
249
target_os = "macos" ,
241
250
target_os = "netbsd" ,
@@ -250,6 +259,7 @@ pub(crate) type Bool = c_int;
250
259
251
260
#[ cfg( any(
252
261
target_os = "ios" ,
262
+ target_os = "visionos" ,
253
263
target_os = "macos" ,
254
264
target_os = "nto" ,
255
265
target_os = "tvos" ,
@@ -259,6 +269,7 @@ use libc::TCP_KEEPALIVE as KEEPALIVE_TIME;
259
269
#[ cfg( not( any(
260
270
target_os = "haiku" ,
261
271
target_os = "ios" ,
272
+ target_os = "visionos" ,
262
273
target_os = "macos" ,
263
274
target_os = "nto" ,
264
275
target_os = "openbsd" ,
@@ -284,6 +295,7 @@ macro_rules! syscall {
284
295
/// Maximum size of a buffer passed to system call like `recv` and `send`.
285
296
#[ cfg( not( any(
286
297
target_os = "ios" ,
298
+ target_os = "visionos" ,
287
299
target_os = "macos" ,
288
300
target_os = "tvos" ,
289
301
target_os = "watchos" ,
@@ -300,6 +312,7 @@ const MAX_BUF_LEN: usize = ssize_t::MAX as usize;
300
312
// both platforms.
301
313
#[ cfg( any(
302
314
target_os = "ios" ,
315
+ target_os = "visionos" ,
303
316
target_os = "macos" ,
304
317
target_os = "tvos" ,
305
318
target_os = "watchos" ,
@@ -339,6 +352,7 @@ type IovLen = usize;
339
352
target_os = "hurd" ,
340
353
target_os = "illumos" ,
341
354
target_os = "ios" ,
355
+ target_os = "visionos" ,
342
356
target_os = "macos" ,
343
357
target_os = "netbsd" ,
344
358
target_os = "nto" ,
@@ -1234,6 +1248,7 @@ pub(crate) fn set_tcp_keepalive(fd: Socket, keepalive: &TcpKeepalive) -> io::Res
1234
1248
target_os = "hurd" ,
1235
1249
target_os = "illumos" ,
1236
1250
target_os = "ios" ,
1251
+ target_os = "visionos" ,
1237
1252
target_os = "linux" ,
1238
1253
target_os = "macos" ,
1239
1254
target_os = "netbsd" ,
@@ -1462,6 +1477,7 @@ impl crate::Socket {
1462
1477
#[ cfg_attr(
1463
1478
any(
1464
1479
target_os = "ios" ,
1480
+ target_os = "visionos" ,
1465
1481
target_os = "macos" ,
1466
1482
target_os = "tvos" ,
1467
1483
target_os = "watchos"
@@ -1498,6 +1514,7 @@ impl crate::Socket {
1498
1514
feature = "all" ,
1499
1515
any(
1500
1516
target_os = "ios" ,
1517
+ target_os = "visionos" ,
1501
1518
target_os = "macos" ,
1502
1519
target_os = "tvos" ,
1503
1520
target_os = "watchos" ,
@@ -1509,6 +1526,7 @@ impl crate::Socket {
1509
1526
feature = "all" ,
1510
1527
any(
1511
1528
target_os = "ios" ,
1529
+ target_os = "visionos" ,
1512
1530
target_os = "macos" ,
1513
1531
target_os = "tvos" ,
1514
1532
target_os = "watchos" ,
@@ -1521,6 +1539,7 @@ impl crate::Socket {
1521
1539
1522
1540
#[ cfg( any(
1523
1541
target_os = "ios" ,
1542
+ target_os = "visionos" ,
1524
1543
target_os = "macos" ,
1525
1544
target_os = "tvos" ,
1526
1545
target_os = "watchos" ,
@@ -1957,6 +1976,7 @@ impl crate::Socket {
1957
1976
feature = "all" ,
1958
1977
any(
1959
1978
target_os = "ios" ,
1979
+ target_os = "visionos" ,
1960
1980
target_os = "macos" ,
1961
1981
target_os = "tvos" ,
1962
1982
target_os = "watchos" ,
@@ -1968,6 +1988,7 @@ impl crate::Socket {
1968
1988
feature = "all" ,
1969
1989
any(
1970
1990
target_os = "ios" ,
1991
+ target_os = "visionos" ,
1971
1992
target_os = "macos" ,
1972
1993
target_os = "tvos" ,
1973
1994
target_os = "watchos" ,
@@ -1993,6 +2014,7 @@ impl crate::Socket {
1993
2014
feature = "all" ,
1994
2015
any(
1995
2016
target_os = "ios" ,
2017
+ target_os = "visionos" ,
1996
2018
target_os = "macos" ,
1997
2019
target_os = "tvos" ,
1998
2020
target_os = "watchos" ,
@@ -2004,6 +2026,7 @@ impl crate::Socket {
2004
2026
feature = "all" ,
2005
2027
any(
2006
2028
target_os = "ios" ,
2029
+ target_os = "visionos" ,
2007
2030
target_os = "macos" ,
2008
2031
target_os = "tvos" ,
2009
2032
target_os = "watchos" ,
@@ -2029,6 +2052,7 @@ impl crate::Socket {
2029
2052
feature = "all" ,
2030
2053
any(
2031
2054
target_os = "ios" ,
2055
+ target_os = "visionos" ,
2032
2056
target_os = "macos" ,
2033
2057
target_os = "tvos" ,
2034
2058
target_os = "watchos" ,
@@ -2040,6 +2064,7 @@ impl crate::Socket {
2040
2064
feature = "all" ,
2041
2065
any(
2042
2066
target_os = "ios" ,
2067
+ target_os = "visionos" ,
2043
2068
target_os = "macos" ,
2044
2069
target_os = "tvos" ,
2045
2070
target_os = "watchos" ,
@@ -2060,6 +2085,7 @@ impl crate::Socket {
2060
2085
feature = "all" ,
2061
2086
any(
2062
2087
target_os = "ios" ,
2088
+ target_os = "visionos" ,
2063
2089
target_os = "macos" ,
2064
2090
target_os = "tvos" ,
2065
2091
target_os = "watchos" ,
@@ -2071,6 +2097,7 @@ impl crate::Socket {
2071
2097
feature = "all" ,
2072
2098
any(
2073
2099
target_os = "ios" ,
2100
+ target_os = "visionos" ,
2074
2101
target_os = "macos" ,
2075
2102
target_os = "tvos" ,
2076
2103
target_os = "watchos" ,
@@ -2088,6 +2115,7 @@ impl crate::Socket {
2088
2115
feature = "all" ,
2089
2116
any(
2090
2117
target_os = "ios" ,
2118
+ target_os = "visionos" ,
2091
2119
target_os = "macos" ,
2092
2120
target_os = "tvos" ,
2093
2121
target_os = "watchos" ,
@@ -2099,6 +2127,7 @@ impl crate::Socket {
2099
2127
feature = "all" ,
2100
2128
any(
2101
2129
target_os = "ios" ,
2130
+ target_os = "visionos" ,
2102
2131
target_os = "macos" ,
2103
2132
target_os = "tvos" ,
2104
2133
target_os = "watchos" ,
@@ -2119,6 +2148,7 @@ impl crate::Socket {
2119
2148
feature = "all" ,
2120
2149
any(
2121
2150
target_os = "ios" ,
2151
+ target_os = "visionos" ,
2122
2152
target_os = "macos" ,
2123
2153
target_os = "tvos" ,
2124
2154
target_os = "watchos" ,
@@ -2130,6 +2160,7 @@ impl crate::Socket {
2130
2160
feature = "all" ,
2131
2161
any(
2132
2162
target_os = "ios" ,
2163
+ target_os = "visionos" ,
2133
2164
target_os = "macos" ,
2134
2165
target_os = "tvos" ,
2135
2166
target_os = "watchos" ,
@@ -2453,6 +2484,7 @@ impl crate::Socket {
2453
2484
target_os = "android" ,
2454
2485
target_os = "freebsd" ,
2455
2486
target_os = "ios" ,
2487
+ target_os = "visionos" ,
2456
2488
target_os = "linux" ,
2457
2489
target_os = "macos" ,
2458
2490
target_os = "tvos" ,
@@ -2468,6 +2500,7 @@ impl crate::Socket {
2468
2500
target_os = "android" ,
2469
2501
target_os = "freebsd" ,
2470
2502
target_os = "ios" ,
2503
+ target_os = "visionos" ,
2471
2504
target_os = "linux" ,
2472
2505
target_os = "macos" ,
2473
2506
target_os = "tvos" ,
@@ -2491,6 +2524,7 @@ impl crate::Socket {
2491
2524
feature = "all" ,
2492
2525
any(
2493
2526
target_os = "ios" ,
2527
+ target_os = "visionos" ,
2494
2528
target_os = "macos" ,
2495
2529
target_os = "tvos" ,
2496
2530
target_os = "watchos" ,
0 commit comments