Rustup installation fails on raspberry pi 4 (raspbian)
path - Fail to run cargo after install rust on raspberry pi 4 - Stack Overflow
Embedded Rust on a pi 4 - Stack Overflow
Raspberry Pi 4 Rust installation broken.
This may be related to clippy and rustfmt now being default components. You should try the minimal profile of rustup: https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html
More on reddit.comVideos
If you’ve worked on any projects using Rust and a Raspberry Pi I would be interested to hear your story.
Cross-compiling to Raspberry PI is easy, and works great. Compiling on a Raspberry PI is rather painful due to long compile times.
(I'm assuming crosscompiling then running on Linux, not bare-metal (but that also should be possible)) Not a big project, but I've run simple HTTP server on one. To be honest, with Rust it mostly just:
rustup target add arm-unknown-linux-musleabihf
cargo build --target arm-unknown-linux-musleabihf
You might need to adjust target, depending on which Raspberry Pi version you're using.
In my case, because I've fairly old one (RPi 1 B+), I had to additionally download gcc toolchain (for linking) from arm's website, as the one from distro didn't support armv6.