Handling target features

I think you meant to use #[cfg(target_feature = "neon")]?.

the #[target_feature(...)] attribute is a (per-function) codegen option for the backend, it's related, but not the equivalent to conditional compilcation guards.

see also this previous question:

or this one: