I want to write a Rust FFI for a C struct using the aligned
attribute.
On nightly, one can use #[feature(repr_simd)]
as in this question. The same technique without #[repr(simd)]
appears to be restricted to a maximum alignment of 8 bytes.
There are various issues and RFCs open for both alignment and SIMD, and the compiler points to tracking issue #27731 which seems to be stalled.
RFC #325 points pretty clearly to no, but it is somewhat old.
Is it possible to do this with the stable compiler, in pure (unsafe?) Rust as of version 1.22?