@@ -29,7 +29,7 @@ compiler_builtins = { version = '0.1.49', optional = true }
29
29
# addition to the libc backend. The linux_raw backend is used by default. The
30
30
# libc backend can be selected via adding `--cfg=rustix_use_libc` to
31
31
# `RUSTFLAGS` or enabling the `use-libc` cargo feature.
32
- [target .'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc")), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))' .dependencies ]
32
+ [target .'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc", target_arch = "arm" )), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))' .dependencies ]
33
33
linux-raw-sys = { version = " 0.9.2" , default-features = false , features = [" general" , " errno" , " ioctl" , " no_std" , " elf" ] }
34
34
libc_errno = { package = " errno" , version = " 0.3.10" , default-features = false , optional = true }
35
35
libc = { version = " 0.2.171" , default-features = false , optional = true }
@@ -38,15 +38,15 @@ libc = { version = "0.2.171", default-features = false, optional = true }
38
38
#
39
39
# On all other Unix-family platforms, and under Miri, we always use the libc
40
40
# backend, so enable its dependencies unconditionally.
41
- [target .'cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc")), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))' .dependencies ]
41
+ [target .'cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc", target_arch = "arm" )), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))' .dependencies ]
42
42
libc_errno = { package = " errno" , version = " 0.3.10" , default-features = false }
43
43
libc = { version = " 0.2.171" , default-features = false }
44
44
45
45
# Additional dependencies for Linux with the libc backend:
46
46
#
47
47
# Some syscalls do not have libc wrappers, such as in `io_uring`. For these,
48
48
# the libc backend uses the linux-raw-sys ABI and `libc::syscall`.
49
- [target .'cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc")), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))' .dependencies ]
49
+ [target .'cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", any(target_arch = "s390x", target_arch = "powerpc", target_arch = "arm" )), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc"), all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))' .dependencies ]
50
50
linux-raw-sys = { version = " 0.9.2" , default-features = false , features = [" general" , " ioctl" , " no_std" ] }
51
51
52
52
# For the libc backend on Windows, use the Winsock API in windows-sys.
@@ -64,8 +64,14 @@ version = "0.3.10"
64
64
package = " errno"
65
65
default-features = false
66
66
67
+ # Rustix uses tempfile for its tests, which in turn uses rustix! We want to use
68
+ # the same consistent version. We therefore need to use a version of tempfile
69
+ # for which its rustix dependency is a semver match for our current version.
70
+ [patch .crates-io ]
71
+ rustix = { path = " ." }
72
+
67
73
[dev-dependencies ]
68
- tempfile = " 3.5 .0"
74
+ tempfile = " 3.20 .0"
69
75
libc = " 0.2.171"
70
76
libc_errno = { package = " errno" , version = " 0.3.10" , default-features = false }
71
77
serial_test = " 2.0.0"
0 commit comments