Skip to content

Commit 45042fe

Browse files
committed
Fix netbsd
1 parent a33bb3a commit 45042fe

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

Cargo.toml

+20-16
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,16 @@ cfg-if = "1"
1818
compiler_builtins = { version = "0.1", optional = true }
1919
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
2020

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]
2723
libc = { version = "0.2.154", default-features = false }
2824

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"] }
3228

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]
3531
libc = { version = "0.2.154", default-features = false }
3632

3733
# getentropy
@@ -42,13 +38,21 @@ libc = { version = "0.2.154", default-features = false }
4238
[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "hurd", target_os = "illumos", all(target_os = "horizon", target_arch = "arm")))'.dependencies]
4339
libc = { version = "0.2.154", default-features = false }
4440

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]
4743
libc = { version = "0.2.154", default-features = false }
4844

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 }
5256

5357
# wasi (0.2 only)
5458
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))'.dependencies]

0 commit comments

Comments
 (0)