Combining rustversion, feature, and target_arch checks in cfg_attr
The Rust Programming Language Forum
Combining rustversion, feature, and target_arch checks in cfg_attr
I'm trying to provide a workaround for known-badly-performing Rust versions by using feature(link_llvm_intrinsics) (permitted via RUSTC_BOOTSTRAP on stable compiler builds) but only if a Cargo feature is enabled and only on x86 and x86_64. That is, I want this: #![cfg_attr(all(feature = "simd-accel", rustversion::since(1.96), rustversion::before(1.99), any(target_arch = "x86", target_arch = "x86_64")), feature(link_llvm_intrinsics))] ...but it doesn't work. Is there a way to make that combi...
0 comments
No comments yet.