Install standard library
rustup target add armv7-unknown-linux-gnueabihf
Install a cross-compile toolchain and add it to your path. You can download one built with crosstool-ng from here.