Today I published arm-targets, a Rust crate that looks at your target string and lets you mark code as only working on specific versions of the Arm architecture. Ideally Rust would have built in target features for this, but it doesn’t.
crates.io/crates/arm-targets
crates.io
crates.io: Rust Package Registry