@@ -30,7 +30,7 @@ compiler_builtins = { version = '0.1.49', optional = true }
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
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 ]
33
- linux-raw-sys = { version = " 0.9.0 " , default-features = false , features = [" general" , " errno" , " ioctl" , " no_std" , " elf" ] }
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.168" , default-features = false , optional = true }
36
36
@@ -47,7 +47,7 @@ libc = { version = "0.2.168", default-features = false }
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
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 ]
50
- linux-raw-sys = { version = " 0.9.0 " , default-features = false , features = [" general" , " ioctl" , " no_std" ] }
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.
53
53
[target .'cfg(windows)' .dependencies .windows-sys ]
@@ -106,12 +106,8 @@ targets = [
106
106
107
107
[features ]
108
108
109
- # By default, use `std` and use libc for aux values.
110
- #
111
- # It turns out to be bizarrely awkward to obtain the aux values reliably and
112
- # efficiently on Linux from anywhere other than libc. We can do it, but most
113
- # users are better served by just using libc for this.
114
- default = [" std" , " use-libc-auxv" ]
109
+ # By default, use `std`.
110
+ default = [" std" ]
115
111
116
112
# This enables use of std. Disabling this enables `#![no_std]`, and requires
117
113
# Rust 1.77 or newer.
@@ -200,8 +196,8 @@ all-apis = [
200
196
" time" ,
201
197
]
202
198
203
- # When using the linux_raw backend, should we use libc for reading the aux
204
- # vectors, instead of reading them ourselves from /proc/self/auxv?
199
+ # When using the linux_raw backend, should we use `getauxval` for reading aux
200
+ # vectors, instead of `PR_GET_AUXV` or " /proc/self/auxv" ?
205
201
use-libc-auxv = []
206
202
207
203
# Enable "use-explicitly-provided-auxv" mode, with a public
0 commit comments