(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
All that we need for cross-compiling from an x86 host to the Raspberry Pi's AArch64 architecture will be automatically installed by rustup. However, besides the Rust compiler, we will use some more tools.
Starred by 14.6K users
Forked by 870 users
Languages   Rust 82.2% | Makefile 8.5% | Ruby 5.9% | Assembly 3.2%
Discussions

Anyone using Rust on a PI ? - Raspberry Pi Forums
Been tinkering with it, but I have done no projects in Rust. I love how fast it compiles compared to that C/C++ GCC stuff Go, Rust and Pony are the top need to learn languages on my list, D recently got added. I prefer any of these over C++ These all work in Gentoo64 which is my main Pi dev OS ... More on raspberrypi.org
🌐 raspberrypi.org
February 18, 2019
How does rust perform on a raspberry pi 3?
Rust binaries run just fine on Raspberry Pi — roughly the same as C/C++, because the compiled code is comparable in size and level of optimization. I'm happily running my Rust code on a Raspberry Pi 3B+, but I cross-compile everything on my laptop and then copy it over to the Pi. I didn't even bother installing the Rust compiler toolchain on the Pi itself because I strongly suspect that even if it didn't simply OOM, then the compile times would drive me insane. :) EDIT: If you search the web for things like "cross compile rust raspberry pi" you'll find some things to point you in the right direction, should you choose to explore it. If you try what you find and don't get any joy, I'll be happy to dig up my Dockerfiles etc. that I've used to get the job done, in case they might be of some use. More on reddit.com
🌐 r/rust
15
16
July 15, 2019
Bare metal Rust on Raspberry pi
That's cool. Do you know if it is easy to take advantage of all 4 cores? (Does the Rust compiler have support for that?) More on reddit.com
🌐 r/raspberry_pi
22
44
January 23, 2023
Installing Rust in a Raspberry Pi 3A+
This may not be directly applicable to your situation, but when I'm building my project locally on my pi, I pass the -j 1 flag to cargo build to avoid OOM. The flag makes rustc only do one build job a time, reducing peak memory usage. More on reddit.com
🌐 r/rust
29
34
January 28, 2023
🌐
Opensource.com
opensource.com › article › 19 › 3 › physical-computing-rust-raspberry-pi
Program the real world using Rust on Raspberry Pi | Opensource.com
March 16, 2019 - I recommend installing Rust on your Raspberry Pi using rustup. Alternatively, you can set up a cross-compilation environment using cross (which works only on an x86_64 Linux host) or this how-to. After you've installed Rust, create a new Rust project by entering:
🌐
Raspberry Pi
raspberrypi.com › home › news › develop embedded firmware for pico using rust or zephyr with pico-vscode
Develop embedded firmware for Pico using Rust or Zephyr with pico-vscode - Raspberry Pi
October 29, 2025 - The Zephyr Project team and all the contributors who helped integrate and refine Pico support within Zephyr — your work made this collaboration possible · The rp-rs developers and organisation — for building and maintaining excellent hardware abstraction layers (HALs) and tools for Raspberry Pi microcontrollers · The Rust Embedded Working Group — for laying the groundwork that makes Rust a great fit for resource-constrained and embedded environments
🌐
Simonprickett
simonprickett.dev › raspberry-pi-coding-with-rust-traffic-lights
Raspberry Pi Coding with Rust: Traffic Lights | simonprickett.dev
November 28, 2021 - It’s time to produce yet another version of my original Raspberry Pi / Low Voltage Labs traffic lights Python article. This time, let’s try it with Rust - a compiled language with syntax similar to C++, and which was originally designed at Mozilla.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
Anyone using Rust on a PI ? - Raspberry Pi Forums
I would call that a pretty serious project. There is also a baremetal version somewhere. https://github.com/rust-embedded/rust-r ... -tutorials Is it currently just a one man band effort? Rust embedded works for smaller Arm's so should work on the single core Pi's.
🌐
Alex Wilson
alexdwilson.dev › how-to-program-raspberry-pi-pico-with-rust
How to Program a Raspberry Pi Pico with Rust — Alex Wilson
How to configure GPIO pins on the ... using Rust. Configure pins on the Raspberry Pi Pico to handle incoming signals from devices in the field, specifically button presses in this instance. What is GPIO? What kinds of GPIO can the Raspberry Pi Pico handle? And How to use these GPIO respectively in a given project...
Find elsewhere
🌐
freeCodeCamp
freecodecamp.org › news › embedded-rust-programming-on-raspberry-pi-zero-w
Embedded Rust Programming on Raspberry Pi Zero W
June 9, 2022 - my-pc:~ $ git clone https://gi...m2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc" Start by creating a new Rust project, and opening the main.rs file in your favourite text editor:...
🌐
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 - The library provides a simple interface to control GPIO devices with a Raspberry Pi. Following this, recently ported the Raspberry Pi Foundation’s Physical Computing with Python3 guide for Rust. After going through The Rust Programming language book, I decided to work on a side project to ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
Example Rust Project - Raspberry Pi Forums
August 29, 2025 - A tool for manipulating memory mapped registers on RaspberryPi(and other platforms). It's written in Rust and the code is available under the MIT License on GitHub.
🌐
Apriorit
apriorit.com › home › blog › software development blog › how to develop a minimal os for raspberry pi 3 in rust
How to Develop a Minimal OS for Raspberry Pi 3 in Rust | Apriorit
October 10, 2025 - Our project includes the development of a no_std binary, driver abstractions, and I/O operations that make a Raspberry Pi 3 echo user input. Using Rust, a Raspberry Pi 3, and ready-made GPIO and UART registers allowed us to speed up development.
🌐
Reddit
reddit.com › r/rust › how does rust perform on a raspberry pi 3?
r/rust on Reddit: How does rust perform on a raspberry pi 3?
July 15, 2019 -

I tried posting this in r/raspberry_pi but didn't get any bites.

Does anyone know how rust binaries / the rust compiler performs on a raspberry pi 3? My poor old crappy desktop rig doesn't seem to mind compiling too much, but I just want to make sure it's worth installing on the pi to play with before I do so.

🌐
Disconnected Systems
disconnected.systems › blog › rust-powered-rover
Using Rust to Control a Raspberry Pi Zero W Rover | Disconnected Systems
You can compile it natively and run it locally with to ensure rust is installed correctly. cargo run # Compiling rpizw-rover v0.1.0 (file:///home/mdaffin/projects/test) # Finished debug [unoptimized + debuginfo] target(s) in 0.38 secs # Running `target/debug/rpizw-rover` # Hello World! And cross compile and upload it to then run it on the pi with.
🌐
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 - Anyone who has coded in JavaScript or Ruby will likely find this familiar. Project information, build instructions, and dependencies are all listed in this file. Packages are called Crates in Rust, and we'll be using one later to access the Raspberry Pi's GPIO pins.
🌐
GitHub
github.com › Ogeon › rust-on-raspberry-pi
GitHub - Ogeon/rust-on-raspberry-pi: [OUTDATED] Instructions for how to cross compile Rust projects for the Raspberry Pi
[OUTDATED] Instructions for how to cross compile Rust projects for the Raspberry Pi - Ogeon/rust-on-raspberry-pi
Starred by 290 users
Forked by 15 users
Languages   Shell 100.0% | Shell 100.0%
🌐
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 - In this article we will build a simple HTTP server application in Rust, cross-compile it for the Raspberry Pi ARM architecture, deploy it to a Raspberry Pi board over a network connection, and install it as a persistent service so that it restarts ...
🌐
GitHub
github.com › doggodoge › rust2pi
GitHub - doggodoge/rust2pi: Tool to cross compile and upload rust projects to a Raspberry Pi. · GitHub
Tool to cross compile and upload rust projects to a Raspberry Pi. - doggodoge/rust2pi
Author   doggodoge
🌐
Raspberry Pi
raspberrypi.com › home › news › rust on rp2350
Rust on RP2350 - Raspberry Pi
September 6, 2024 - Jonathan Pallant tells us about the exciting work on the Rust programming language on embedded platforms RP2040 and, now, our new chip RP2350.
🌐
LibHunt
libhunt.com › l › rust › topic › raspberry-pi
Top 22 Rust Raspberry Pi Projects | LibHunt
Which are the best open-source Raspberry Pi projects in Rust? This list will help you: rust-raspberrypi-OS-tutorials, xplr, endbasic, vod2pod-rss, houseflow, pisugar-power-manager-rs, and minidsp-rs.