The Rust Compiler allows for cross compilation between different architectures.
Setup hints
# ~/.cargo/config [target.arm-unknown-linux-gnueabihf] linker = "arm-linux-gnueabihf-g++"
Fine-grained cross compilation with Cargo is tricky .
rust-openssl manual configuration for cross compilation with Cargo
OPENSSL_INCLUDE_DIR=/usr/include/openssl/ cargo build --target=arm-unknown-linux-gnueabihf
The Raspberry Pi Tools need to be in PATH
# .bashrc export PATH=/home/almereyda/.local/share/rust-arm/bin:$PATH export PATH=/home/almereyda/.local/share/rust-arm/lib:$PATH export PATH=/srv/git/Fundus/github.com/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH export LD_LIBRARY_PATH=/home/almereyda/.local/share/rust-arm/lib