(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. Answer from Shadow0133 on reddit.com
🌐
GitHub
github.com › rust-embedded › rust-raspberrypi-OS-tutorials
GitHub - rust-embedded/rust-raspberrypi-OS-tutorials: :books: Learn to write an embedded OS in Rust :crab: · GitHub
The code written in these tutorials supports and runs on the Raspberry Pi 3 and the Raspberry Pi 4.
Starred by 14.6K users
Forked by 870 users
Languages   Rust 82.2% | Makefile 8.5% | Ruby 5.9% | Assembly 3.2%
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
Installing Rust on Pi 4, 32 bit Pi OS. - Raspberry Pi Forums
If one follows the Rust installation instructions here: https://www.rust-lang.org/tools/install the resulting Rust installation will not run on a Pi4 with a 32 bit Pi OS. At least not if one just does the default install. Which is odd, I'm sure I had it working in the spring time.
Discussions

Rustup installation fails on raspberry pi 4 (raspbian)
Problem I need the latest version ot rustc to install the last release of home assistant, but it seems that the executables for a wrong architecture were downloaded using rustup default installatio... More on github.com
🌐 github.com
17
May 1, 2023
path - Fail to run cargo after install rust on raspberry pi 4 - Stack Overflow
I was trying to install rust on Raspberrypi 4 using the recommended install script: pi@raspberrypi:/tmp $ curl https://sh.rustup.rs -sSf | sh But after reboot, cargo cannot be found: pi@raspberryp... More on stackoverflow.com
🌐 stackoverflow.com
Embedded Rust on a pi 4 - Stack Overflow
im a beginner in embedde rust on a raspberry pi. Need some help for loading code via toolchain on the pi 4. Tanks for helping i hope someone can help me with that or show me where i can get a guide More on stackoverflow.com
🌐 stackoverflow.com
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.com
🌐 r/rust
1
8
October 15, 2019
🌐
Medium
medium.com › swlh › compiling-rust-for-raspberry-pi-arm-922b55dbb050
Compile Rust for Raspberry Pi ARM | by Tiziano Santoro | The Startup | Medium
October 17, 2020 - First we need to install the appropriate Rust target platform for the current Rust toolchain. For a Raspberry Pi 4 (and also for most other recent Raspberry Pi boards), we can use the armv7-unknown-linux-gnueabihf target.
🌐
Shaneutt
shaneutt.com › blog › rust-x86-arm-raspberry-pi-4
Rust - X86 to ARM builds for Raspberry Pi 4
January 19, 2020 - Build your Raspberry Pi 4 binary with: cargo build --target armv7-unknown-linux-musleabihf --release · For a quick test you can use scp to copy the binary over to your Pi and run it: scp target/armv7-unknown-linux-musleabihf/release/testpi root@${SERVER_IP}:/usr/local/bin/testpi ssh ...
🌐
Simonprickett
simonprickett.dev › raspberry-pi-coding-with-rust-traffic-lights
Raspberry Pi Coding with Rust: Traffic Lights | simonprickett.dev
November 28, 2021 - $ cargo run Updating crates.io index Downloaded autocfg v1.0.1 Downloaded bitflags v1.3.2 Downloaded lazy_static v1.4.0 Downloaded ctrlc v3.2.1 Downloaded rppal v0.12.0 Downloaded memoffset v0.6.4 Downloaded cfg-if v1.0.0 Downloaded nix v0.23.0 Downloaded libc v0.2.107 Downloaded rust_gpiozero v0.2.1 Downloaded 10 crates (908.3 KB) in 1.15s Compiling lazy_static v1.4.0 Compiling rppal v0.12.0 Compiling rust_gpiozero v0.2.1 Compiling rustpitrafficlights v0.1.0 (/home/pi/rustpitrafficlights) Finished dev [unoptimized + debuginfo] target(s) in 2m 46s Running `target/debug/rustpitrafficlights`
Find elsewhere
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
Anyone using Rust on a PI ? - Raspberry Pi Forums
AJ Starks is the place to go for OpenVG, he has done it in Go, Rust is a similar level. Due to where Rust is coming from I expect most support will be more relatable to the 64bit 3B's. Rust can talk to C libs so those can be used for GPIO stuff? I'm dancing on Rainbows. Raspberries are not Apples or Oranges
🌐
GitHub
github.com › rust-lang › rustup › issues › 3342
Rustup installation fails on raspberry pi 4 (raspbian) · Issue #3342 · rust-lang/rustup
May 1, 2023 - (homeassistant) homeassistant@raspix:/srv/homeassistant $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh info: downloading installer warning: it looks like you have an existing installation of Rust at: warning: /usr/bin warning: It is recommended that rustup be the primary Rust installation.
Author   pistoni
🌐
C# Corner
c-sharpcorner.com › article › getting-started-with-rust-on-raspberry-pi
Getting started with Rust on Raspberry Pi
July 3, 2023 - In this blog post, we will learn how to get started with Rust on Raspberry Pi. Let's get started. In terms of hardware, you will need the following: Raspberry Pi 4 (4GB RAM) (already setup with Raspberry Pi OS)
🌐
Stack Overflow
stackoverflow.com › questions › 74244506 › embedded-rust-on-a-pi-4
Embedded Rust on a pi 4 - Stack Overflow
RPi runs Linux - you don't need embedded rust for that. Or do you mean you are developing for an embedded device with the RPi as a development host? Also "Need some help for loading code via toolchain on the pi 4." needs some elaboration.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
Installing Rust - Raspberry Pi Forums
November 10, 2023 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh if you visit that page from a Mac, Linux or similar machine. I prefer this because: 1) The Debian packages are generally somewhat out of date. Rust is still under development and it is easy to fetch new stable versions with the rustup command that gets installed as above.
🌐
GitHub
github.com › golemparts › rppal
GitHub - golemparts/rppal: A Rust library that provides access to the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals. · GitHub
A Rust library that provides access to the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals. - golemparts/rppal
Starred by 1.5K users
Forked by 126 users
Languages   Rust
🌐
MakeUseOf
makeuseof.com › home › programming › how to get started with rust on raspberry pi
How to Get Started With Rust on Raspberry Pi
September 4, 2019 - It would work perfectly fine through ... systems might have varying results. To install rust, head to the rust-lang install page and copy the install command into your terminal....
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-install-rust-on-raspberry-pi
How to Install Rust on Raspberry Pi? | GeeksforGeeks
July 23, 2025 - Step 1: Open the terminal of Raspberry Pi Os, then write the following command to download Rust. ... Step 2: You have to wait till the process is completed. Then enter option 1 to proceed with the installation process.
🌐
GitHub
github.com › sime1 › raspi4-rust
GitHub - sime1/raspi4-rust: Bare metal Rapberry Pi 4 code
This repo contains some code I wrote trying to learn about bare metal programming the Pi 4. ... # install rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # install cargo-xbuild rustup component add rust-src cargo install cargo-xbuild # install cargo-binutils cargo install cargo-binutils rustup component add llvm-tools-preview # use the nightly toolchain rustup override set nightly
Author   sime1
🌐
freeCodeCamp
freecodecamp.org › news › embedded-rust-programming-on-raspberry-pi-zero-w
Embedded Rust Programming on Raspberry Pi Zero W
June 9, 2022 - Once that is done, you can insert the SD card into the Raspberry Pi, and power it up. ... Appendix for more information about targets in Rust. Download the raspberrypi/tools repository into a directory named rpi_tools: my-pc:~ $ git clone https://github.com/raspberrypi/tools $HOME/rpi_tools · Edit the ~/.cargo/config file using your favourite text editor: ... [target.arm-unknown-linux-gnueabihf] linker = "/rpi_tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc"
🌐
rahul thakoor
rahul-thakoor.github.io › home › physical computing with rust on raspberry pi
Physical Computing With Rust On Raspberry Pi - rahul thakoor
July 7, 2018 - More importantly, the guide covers elements from the following strands of the Raspberry Pi Digital Making Curriculum4: Use basic programming constructs to create simple programs · Use basic digital, analogue, and electromechanical components ... I adapted the guide to make Physical Computing with Rust5.