Run docker build -t armv7-rust .
, then docker run -it --rm armv7-rust
. The compiled binary will be found at /root/hello/target/armv7-unknown-linux-gnueabihf/debug/hello in the container. Copy it to an ARMv7 machine and run it. It should say "Hello, world!".
This is based on the instructions found in the rust-cross project.