target:arm-unknown-linux-gnueabihf
Change directory to your project root.
Then you enter into docker image.
docker run -it --rm -v ${PWD}:/source yasuyuky/rust-arm
and following commands works
cargo build --target=arm-unknown-linux-gnueabihf
rustc --target=arm-unknown-linux-gnueabihf -C linker=arm-linux-gnueabihf-gcc foo.rs
MIT