// To cross compile, first you need to add a target
rustup target add <Your target here, example: arm-linux-androideabi>
// Then you need to build, passing the target flag
cargo build --target=<Your target here, example: arm-linux-androideabi>
// To see a list of available targets:
rustup target list
//To remove a previously-added target
rustup target remove
// Supported platforms:
https://doc.rust-lang.org/nightly/rustc/platform-support.html