Rustc allowes to cross compile to a different target with
rustc example.rs --target=aarch64-unknown-linux-gnu. But the programm cannot use the std. To use the std the rustc has to be compiled with
So i am thinking if it would be possible to put std on crates.io. Then if someone wants to cross compile, cargo could download and compile std like any other library.