@@ -18,20 +18,16 @@ cfg-if = "1"
18
18
compiler_builtins = { version = " 0.1" , optional = true }
19
19
core = { version = " 1.0" , optional = true , package = " rustc-std-workspace-core" }
20
20
21
- # apple-other
22
- [target .'cfg(any(target_os = "ios", target_os = "visionos", target_os = "watchos", target_os = "tvos"))' .dependencies ]
23
- libc = { version = " 0.2.154" , default-features = false }
24
-
25
- # vxworks
26
- [target .'cfg(target_os = "vxworks")' .dependencies ]
21
+ # linux_android / linux_android_with_fallback
22
+ [target .'cfg(all(any(target_os = "linux", target_os = "android"), not(any(getrandom_backend = "linux_rustix", getrandom_backend = "custom"))))' .dependencies ]
27
23
libc = { version = " 0.2.154" , default-features = false }
28
24
29
- # use_file
30
- [target .'cfg(any(target_os = "haiku ", target_os = "redox", target_os = "nto ", target_os = "aix" ))' .dependencies ]
31
- libc = { version = " 0.2.154 " , default-features = false }
25
+ # linux_rustix
26
+ [target .'cfg(all( any(target_os = "linux ", target_os = "android"), any(target_env = "", getrandom_backend = "linux_rustix") ))' .dependencies ]
27
+ rustix = { version = " 0.38 " , default-features = false , features = [ " rand " ] }
32
28
33
- # solaris
34
- [target .'cfg(target_os = "solaris" )' .dependencies ]
29
+ # apple-other
30
+ [target .'cfg(any( target_os = "ios", target_os = "visionos", target_os = "watchos", target_os = "tvos") )' .dependencies ]
35
31
libc = { version = " 0.2.154" , default-features = false }
36
32
37
33
# getentropy
@@ -42,13 +38,21 @@ libc = { version = "0.2.154", default-features = false }
42
38
[target .'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "hurd", target_os = "illumos", all(target_os = "horizon", target_arch = "arm")))' .dependencies ]
43
39
libc = { version = " 0.2.154" , default-features = false }
44
40
45
- # linux_android / linux_android_with_fallback
46
- [target .'cfg(all(any( target_os = "linux", target_os = "android"), not(any(getrandom_backend = "linux_rustix", getrandom_backend = "custom"))) )' .dependencies ]
41
+ # netbsd
42
+ [target .'cfg(target_os = "netbsd" )' .dependencies ]
47
43
libc = { version = " 0.2.154" , default-features = false }
48
44
49
- # linux_rustix
50
- [target .'cfg(all(any(target_os = "linux", target_os = "android"), any(target_env = "", getrandom_backend = "linux_rustix")))' .dependencies ]
51
- rustix = { version = " 0.38" , default-features = false , features = [" rand" ] }
45
+ # solaris
46
+ [target .'cfg(target_os = "solaris")' .dependencies ]
47
+ libc = { version = " 0.2.154" , default-features = false }
48
+
49
+ # use_file
50
+ [target .'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix"))' .dependencies ]
51
+ libc = { version = " 0.2.154" , default-features = false }
52
+
53
+ # vxworks
54
+ [target .'cfg(target_os = "vxworks")' .dependencies ]
55
+ libc = { version = " 0.2.154" , default-features = false }
52
56
53
57
# wasi (0.2 only)
54
58
[target .'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))' .dependencies ]
0 commit comments