Sadly, the only popular target arch where a proper no_std target feature detection is available is x86(-64). For other targets we use OS-specific detection code.
Targets with OS generally have std, so we could use is_*_feature_detected! macros on them instead of re-implementing OS-specific target feature detection code. This would allow us to automatically support new target features with minimal maintenance burden.
I suggest we switch to the macros on selected targets with available std in the next breaking release.
One open question is whether we should use is_x86_feature_detected! on targets with OS or keep using our CPUID code.
Sadly, the only popular target arch where a proper
no_stdtarget feature detection is available is x86(-64). For other targets we use OS-specific detection code.Targets with OS generally have
std, so we could useis_*_feature_detected!macros on them instead of re-implementing OS-specific target feature detection code. This would allow us to automatically support new target features with minimal maintenance burden.I suggest we switch to the macros on selected targets with available
stdin the next breaking release.One open question is whether we should use
is_x86_feature_detected!on targets with OS or keep using our CPUID code.