Compiling Rust for Raspberry Pi

; Date: June 28, 2018

Tags: Rust »»»» Cross Compilation »»»» ARM Compilation

Instructions for cross-compiling Rust code to ARMv7, such as the Raspberry Pi.

In the "crate cargo config" file add this:

linker = "arm-linux-gnueabihf-gcc"

This tells cargo which linker to use when armv7-unkown-linux-gnueabih is specified as the target.

This Dockerfile, based on sdthirlwall/raspberry-pi-cross-compiler, sets up a Rust cross-compilation environment.

Is the build process to use.

See also: Using Docker to host ARM toolchain to cross-compile C code

For full details see: (