Crate std_detect
Run-time feature detection for the Rust standard library.
To detect whether a feature is enabled in the system running the binary use one of the appropriate macro for the target:
x86andx86_64:is_x86_feature_detectedarm:is_arm_feature_detectedaarch64:is_aarch64_feature_detectedriscv:is_riscv_feature_detectedmips:is_mips_feature_detectedmips64:is_mips64_feature_detectedpowerpc:is_powerpc_feature_detectedpowerpc64:is_powerpc64_feature_detectedloongarch:is_loongarch_feature_detecteds390x:is_s390x_feature_detected
Macros
- detect_feature
- is_aarch64_feature_detected Check for the presence of a CPU feature at runtime.
- is_arm_feature_detected Check for the presence of a CPU feature at runtime.
- is_loongarch_feature_detected Check for the presence of a CPU feature at runtime.
- is_mips64_feature_detected Check for the presence of a CPU feature at runtime.
- is_mips_feature_detected Check for the presence of a CPU feature at runtime.
- is_powerpc64_feature_detected Check for the presence of a CPU feature at runtime.
- is_powerpc_feature_detected Check for the presence of a CPU feature at runtime.
- is_riscv_feature_detected Check for the presence of a CPU feature at runtime.
- is_s390x_feature_detected Check for the presence of a CPU feature at runtime.
- is_x86_feature_detected Check for the presence of a CPU feature at runtime.