You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/std_detect/README.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,19 @@ run-time feature detection. When this feature is disabled, `std_detect` assumes
30
30
that [`getauxval`] is linked to the binary. If that is not the case the behavior
31
31
is undefined.
32
32
33
-
Note: This feature is ignored on `*-linux-gnu*` targets, since all `*-linux-gnu*` targets ([since Rust 1.64](https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html)) have glibc requirements higher than [glibc 2.16 that added `getauxval`](https://sourceware.org/legacy-ml/libc-announce/2012/msg00000.html), and we can safely assume [`getauxval`] is linked to the binary.
33
+
Note: This feature is ignored on `*-linux-gnu*` and `*-android*` targets
34
+
because we can safely assume `getauxval` is linked to the binary.
have the minimum supported API level higher than [Android 4.3 (API level 18) that added `getauxval`](https://github.com/aosp-mirror/platform_bionic/blob/d3ebc2f7c49a9893b114124d4a6b315f3a328764/libc/include/sys/auxv.h#L49).
34
39
35
40
*`std_detect_file_io` (enabled by default, requires `std`): Enable to perform run-time feature
36
41
detection using file APIs (e.g. `/proc/cpuinfo`, etc.) if other more performant
37
42
methods fail. This feature requires `libstd` as a dependency, preventing the
38
43
crate from working on applications in which `std` is not available.
/// have the minimum supported API level higher than [Android 4.3 (API level 18) that added `getauxval`](https://github.com/aosp-mirror/platform_bionic/blob/d3ebc2f7c49a9893b114124d4a6b315f3a328764/libc/include/sys/auxv.h#L49).
61
64
///
62
65
/// For more information about when `getauxval` is available check the great
0 commit comments