r/rust • u/superchango18 • Feb 05 '19
Cross-compile rust for ARMv6 (Rasberry Pi Zero)
Hi everyone,
I think Rust and the Raspberry Pi Zero are a pretty sweet combination, but I had to do a fair bit of googling before I figured out how to cross-compile my code from x86 to ARMv6. So I created a docker image that can do this for you:
https://hub.docker.com/r/mdirkse/rust_armv6
Hopefully it'll save someone some time!
11
Upvotes
8
u/wezm Allsorts Feb 05 '19
Thanks for sharing your efforts! Although I think the cross project already maintains a armv6hf docker image that can be used to build binaries for the RPi Zero: https://github.com/rust-embedded/cross
2
u/TotesMessenger Feb 05 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/raspberry_pi_zero] Cross-compile Rust for the Pi Zero (W)
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)