@@ -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" ,
@@ -200,6 +206,7 @@ pub(crate) use libc::{
200
206
target_os = "haiku" ,
201
207
target_os = "illumos" ,
202
208
target_os = "ios" ,
209
+ target_os = "visionos" ,
203
210
target_os = "macos" ,
204
211
target_os = "netbsd" ,
205
212
target_os = "nto" ,
@@ -215,6 +222,7 @@ pub(crate) use libc::{IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP};
215
222
target_os = "haiku" ,
216
223
target_os = "illumos" ,
217
224
target_os = "ios" ,
225
+ target_os = "visionos" ,
218
226
target_os = "macos" ,
219
227
target_os = "netbsd" ,
220
228
target_os = "openbsd" ,
@@ -234,6 +242,7 @@ pub(crate) use libc::{
234
242
target_os = "fuchsia" ,
235
243
target_os = "illumos" ,
236
244
target_os = "ios" ,
245
+ target_os = "visionos" ,
237
246
target_os = "linux" ,
238
247
target_os = "macos" ,
239
248
target_os = "netbsd" ,
@@ -248,6 +257,7 @@ pub(crate) type Bool = c_int;
248
257
249
258
#[ cfg( any(
250
259
target_os = "ios" ,
260
+ target_os = "visionos" ,
251
261
target_os = "macos" ,
252
262
target_os = "nto" ,
253
263
target_os = "tvos" ,
@@ -257,6 +267,7 @@ use libc::TCP_KEEPALIVE as KEEPALIVE_TIME;
257
267
#[ cfg( not( any(
258
268
target_os = "haiku" ,
259
269
target_os = "ios" ,
270
+ target_os = "visionos" ,
260
271
target_os = "macos" ,
261
272
target_os = "nto" ,
262
273
target_os = "openbsd" ,
@@ -282,6 +293,7 @@ macro_rules! syscall {
282
293
/// Maximum size of a buffer passed to system call like `recv` and `send`.
283
294
#[ cfg( not( any(
284
295
target_os = "ios" ,
296
+ target_os = "visionos" ,
285
297
target_os = "macos" ,
286
298
target_os = "tvos" ,
287
299
target_os = "watchos" ,
@@ -298,6 +310,7 @@ const MAX_BUF_LEN: usize = ssize_t::MAX as usize;
298
310
// both platforms.
299
311
#[ cfg( any(
300
312
target_os = "ios" ,
313
+ target_os = "visionos" ,
301
314
target_os = "macos" ,
302
315
target_os = "tvos" ,
303
316
target_os = "watchos" ,
@@ -337,6 +350,7 @@ type IovLen = usize;
337
350
target_os = "hurd" ,
338
351
target_os = "illumos" ,
339
352
target_os = "ios" ,
353
+ target_os = "visionos" ,
340
354
target_os = "macos" ,
341
355
target_os = "netbsd" ,
342
356
target_os = "nto" ,
@@ -1227,6 +1241,7 @@ pub(crate) fn set_tcp_keepalive(fd: Socket, keepalive: &TcpKeepalive) -> io::Res
1227
1241
target_os = "hurd" ,
1228
1242
target_os = "illumos" ,
1229
1243
target_os = "ios" ,
1244
+ target_os = "visionos" ,
1230
1245
target_os = "linux" ,
1231
1246
target_os = "macos" ,
1232
1247
target_os = "netbsd" ,
@@ -1455,6 +1470,7 @@ impl crate::Socket {
1455
1470
#[ cfg_attr(
1456
1471
any(
1457
1472
target_os = "ios" ,
1473
+ target_os = "visionos" ,
1458
1474
target_os = "macos" ,
1459
1475
target_os = "tvos" ,
1460
1476
target_os = "watchos"
@@ -1491,6 +1507,7 @@ impl crate::Socket {
1491
1507
feature = "all" ,
1492
1508
any(
1493
1509
target_os = "ios" ,
1510
+ target_os = "visionos" ,
1494
1511
target_os = "macos" ,
1495
1512
target_os = "tvos" ,
1496
1513
target_os = "watchos" ,
@@ -1502,6 +1519,7 @@ impl crate::Socket {
1502
1519
feature = "all" ,
1503
1520
any(
1504
1521
target_os = "ios" ,
1522
+ target_os = "visionos" ,
1505
1523
target_os = "macos" ,
1506
1524
target_os = "tvos" ,
1507
1525
target_os = "watchos" ,
@@ -1514,6 +1532,7 @@ impl crate::Socket {
1514
1532
1515
1533
#[ cfg( any(
1516
1534
target_os = "ios" ,
1535
+ target_os = "visionos" ,
1517
1536
target_os = "macos" ,
1518
1537
target_os = "tvos" ,
1519
1538
target_os = "watchos" ,
@@ -1950,6 +1969,7 @@ impl crate::Socket {
1950
1969
feature = "all" ,
1951
1970
any(
1952
1971
target_os = "ios" ,
1972
+ target_os = "visionos" ,
1953
1973
target_os = "macos" ,
1954
1974
target_os = "tvos" ,
1955
1975
target_os = "watchos" ,
@@ -1961,6 +1981,7 @@ impl crate::Socket {
1961
1981
feature = "all" ,
1962
1982
any(
1963
1983
target_os = "ios" ,
1984
+ target_os = "visionos" ,
1964
1985
target_os = "macos" ,
1965
1986
target_os = "tvos" ,
1966
1987
target_os = "watchos" ,
@@ -1986,6 +2007,7 @@ impl crate::Socket {
1986
2007
feature = "all" ,
1987
2008
any(
1988
2009
target_os = "ios" ,
2010
+ target_os = "visionos" ,
1989
2011
target_os = "macos" ,
1990
2012
target_os = "tvos" ,
1991
2013
target_os = "watchos" ,
@@ -1997,6 +2019,7 @@ impl crate::Socket {
1997
2019
feature = "all" ,
1998
2020
any(
1999
2021
target_os = "ios" ,
2022
+ target_os = "visionos" ,
2000
2023
target_os = "macos" ,
2001
2024
target_os = "tvos" ,
2002
2025
target_os = "watchos" ,
@@ -2022,6 +2045,7 @@ impl crate::Socket {
2022
2045
feature = "all" ,
2023
2046
any(
2024
2047
target_os = "ios" ,
2048
+ target_os = "visionos" ,
2025
2049
target_os = "macos" ,
2026
2050
target_os = "tvos" ,
2027
2051
target_os = "watchos" ,
@@ -2033,6 +2057,7 @@ impl crate::Socket {
2033
2057
feature = "all" ,
2034
2058
any(
2035
2059
target_os = "ios" ,
2060
+ target_os = "visionos" ,
2036
2061
target_os = "macos" ,
2037
2062
target_os = "tvos" ,
2038
2063
target_os = "watchos" ,
@@ -2053,6 +2078,7 @@ impl crate::Socket {
2053
2078
feature = "all" ,
2054
2079
any(
2055
2080
target_os = "ios" ,
2081
+ target_os = "visionos" ,
2056
2082
target_os = "macos" ,
2057
2083
target_os = "tvos" ,
2058
2084
target_os = "watchos" ,
@@ -2064,6 +2090,7 @@ impl crate::Socket {
2064
2090
feature = "all" ,
2065
2091
any(
2066
2092
target_os = "ios" ,
2093
+ target_os = "visionos" ,
2067
2094
target_os = "macos" ,
2068
2095
target_os = "tvos" ,
2069
2096
target_os = "watchos" ,
@@ -2081,6 +2108,7 @@ impl crate::Socket {
2081
2108
feature = "all" ,
2082
2109
any(
2083
2110
target_os = "ios" ,
2111
+ target_os = "visionos" ,
2084
2112
target_os = "macos" ,
2085
2113
target_os = "tvos" ,
2086
2114
target_os = "watchos" ,
@@ -2092,6 +2120,7 @@ impl crate::Socket {
2092
2120
feature = "all" ,
2093
2121
any(
2094
2122
target_os = "ios" ,
2123
+ target_os = "visionos" ,
2095
2124
target_os = "macos" ,
2096
2125
target_os = "tvos" ,
2097
2126
target_os = "watchos" ,
@@ -2112,6 +2141,7 @@ impl crate::Socket {
2112
2141
feature = "all" ,
2113
2142
any(
2114
2143
target_os = "ios" ,
2144
+ target_os = "visionos" ,
2115
2145
target_os = "macos" ,
2116
2146
target_os = "tvos" ,
2117
2147
target_os = "watchos" ,
@@ -2123,6 +2153,7 @@ impl crate::Socket {
2123
2153
feature = "all" ,
2124
2154
any(
2125
2155
target_os = "ios" ,
2156
+ target_os = "visionos" ,
2126
2157
target_os = "macos" ,
2127
2158
target_os = "tvos" ,
2128
2159
target_os = "watchos" ,
@@ -2446,6 +2477,7 @@ impl crate::Socket {
2446
2477
target_os = "android" ,
2447
2478
target_os = "freebsd" ,
2448
2479
target_os = "ios" ,
2480
+ target_os = "visionos" ,
2449
2481
target_os = "linux" ,
2450
2482
target_os = "macos" ,
2451
2483
target_os = "tvos" ,
@@ -2461,6 +2493,7 @@ impl crate::Socket {
2461
2493
target_os = "android" ,
2462
2494
target_os = "freebsd" ,
2463
2495
target_os = "ios" ,
2496
+ target_os = "visionos" ,
2464
2497
target_os = "linux" ,
2465
2498
target_os = "macos" ,
2466
2499
target_os = "tvos" ,
@@ -2484,6 +2517,7 @@ impl crate::Socket {
2484
2517
feature = "all" ,
2485
2518
any(
2486
2519
target_os = "ios" ,
2520
+ target_os = "visionos" ,
2487
2521
target_os = "macos" ,
2488
2522
target_os = "tvos" ,
2489
2523
target_os = "watchos" ,
0 commit comments