bitpacking crate uses simd instructions if available.
stdsimd is not available in stable at the moment.
I would like projects that depend on this crate to compile in stable (and not benefit from SIMD) and in nightly (and benefit from the better performance SIMD).
Is there a way to detect that a rust feature gate is available? and if so, enable it?
I have seen packages using a
nightly crate feature to do that. I am unhappy about this solution for various reasons : it assumes something about rustc version, it is not transparent for the user etc.
In my case, the package is expected to deliver the same result in nightly and stable. The only difference is performance.