๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ other programming languages
Installing Rust on Pi5/Bookworm - Raspberry Pi Forums
November 25, 2023 - I have never known it to fail on any system, Mac, PC, Pi, Jetson, etc. I strongly urge you not to use the Rust that is available in the operating systems apt repository. Far better to use the latest versions of Rust that you get by installing it properly and using rustup to keep your Rust up to date.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ installation guide โ€บ 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.
Discussions

Rust Language on Raspberry Pi Boards
Which Raspberry Pi? I ask because the new Pi5 is on ARM v8 which has no build targets in stable Rust. appears to have tier 1 support already... Pi 2, 3, and 4 however are ARM v7 and so you should be able to cross compile for them using the "armv7-unknown-linux-gnueabihf" target. << Not sure if this is current, as according to the documentation as long as you're running ARM Linux kernel version 4.1 or newer the standard ARM linux target should work. Pi 5 may be more challenging to cross compile, so I'd try compiling it on the pi itself (should be no problem on a pi5?), assuming it's running linux you should be able to install it - it's in the repos on my Pi5 running Ubuntu... Though you might want to just compile Rustup yourself as the docs suggest. Disclaimer: I haven't tested this. EDIT: I got home and had to try this - I ssh'd into my pi5 and installed rustup, which was one line as documented here : curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Default install targeted --> stable-aarch64-unknown-linux-gnu Made a new project with cargo new and printed Hello World to the terminal, the binary compiled and ran with no issues. HOWEVER - if I try to cross-compile from my Windows machine, the story is different. It was a huge pain in the ass. So much so that I didn't bother completing getting it working because it will involve junking up my local toolchain. I would much rather just pull down the repo from the Pi and compile it locally. You need to use a non-default toolchain and other witchery in your project config to make it work. Even in WSL I had the the same issue, even though it's using the gnu toolchain in WSL, it errors when you try to compile to the ARM target. Closest I got was forcing using the lld linker (after installing it using apt) and it outputs the exact same errors as cc ๐Ÿคทโ€โ™‚๏ธ So, OP, I sympathize. Hopefully you have the option of compiling locally on the Pi, as that works for me with no issues. More on reddit.com
๐ŸŒ r/raspberry_pi
15
0
March 12, 2024
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
Error installing Rust with Rustup on Raspberry Pi
Friends I am installing Rust, using Rustup on a Pi. I have done this many times, and it has always just worked. Not this time. I am at a loss. I get this error towards the end of the process stable-aarch64-unknown-linux-gnu installed - (error reading rustc version) When I try to run cargo help ... More on users.rust-lang.org
๐ŸŒ users.rust-lang.org
5
0
October 13, 2023
Need Documenetation Guide On How To Build Rust On Raspberry Pi With armv7-unknown-linux-musleabihf Platform
Dear Sir/Madam, Good day. I've have some errors in installing rust for Raspberry Pi using armv7-unknown-linux-musleabihf platform, which is not supported. Full Error Logs: Error response from daemon: No such image: test-api:latest [+] Building 24.9s (10/11) docker:default => [internal] load ... More on users.rust-lang.org
๐ŸŒ users.rust-lang.org
1
0
August 30, 2023
๐ŸŒ
balena
docs.balena.io โ€บ learn โ€บ getting-started โ€บ raspberrypi5 โ€บ rust
Getting started: Raspberry Pi 5 and Rust | balena
Setting up your Raspberry Pi 5 device and bringing it online on the balenaCloud dashboard. Deploying a Rust hello-world project on the device.
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ other programming languages
Installing Rust - Raspberry Pi Forums
November 10, 2023 - I strongly recommend that instead of using the Rust supplied in Debian packages you install Rust the way it is supposed to be. As shown here: https://www.rust-lang.org/tools/install You should see the command: ... curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh if you visit that ...
๐ŸŒ
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
Starting with tutorial 5, you can load and run the kernel on the real Raspberrys and observe output over UART. Although the Raspberry Pi 3 and 4 are the main target boards, the code is written in a modular fashion which allows for easy porting to other CPU architectures and/or boards. I would really love if someone takes a shot at a RISC-V implementation! For editing, I recommend Visual Studio Code with Rust ...
Starred by 14.6K users
Forked by 870 users
Languages ย  Rust 82.2% | Makefile 8.5% | Ruby 5.9% | Assembly 3.2%
๐ŸŒ
Reddit
reddit.com โ€บ r/raspberry_pi โ€บ rust language on raspberry pi boards
r/raspberry_pi on Reddit: Rust Language on Raspberry Pi Boards
March 12, 2024 -

Dear God and Baby Jesus,

Please make it infinitely easier to run the Rust Language on Raspberry Pi boards. I feel like a white puffy poodle jumping through flaming hoops just to blink a board.

Thank you and all the best,

Timmy

Amen.

Top answer
1 of 5
2
Which Raspberry Pi? I ask because the new Pi5 is on ARM v8 which has no build targets in stable Rust. appears to have tier 1 support already... Pi 2, 3, and 4 however are ARM v7 and so you should be able to cross compile for them using the "armv7-unknown-linux-gnueabihf" target. << Not sure if this is current, as according to the documentation as long as you're running ARM Linux kernel version 4.1 or newer the standard ARM linux target should work. Pi 5 may be more challenging to cross compile, so I'd try compiling it on the pi itself (should be no problem on a pi5?), assuming it's running linux you should be able to install it - it's in the repos on my Pi5 running Ubuntu... Though you might want to just compile Rustup yourself as the docs suggest. Disclaimer: I haven't tested this. EDIT: I got home and had to try this - I ssh'd into my pi5 and installed rustup, which was one line as documented here : curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Default install targeted --> stable-aarch64-unknown-linux-gnu Made a new project with cargo new and printed Hello World to the terminal, the binary compiled and ran with no issues. HOWEVER - if I try to cross-compile from my Windows machine, the story is different. It was a huge pain in the ass. So much so that I didn't bother completing getting it working because it will involve junking up my local toolchain. I would much rather just pull down the repo from the Pi and compile it locally. You need to use a non-default toolchain and other witchery in your project config to make it work. Even in WSL I had the the same issue, even though it's using the gnu toolchain in WSL, it errors when you try to compile to the ARM target. Closest I got was forcing using the lld linker (after installing it using apt) and it outputs the exact same errors as cc ๐Ÿคทโ€โ™‚๏ธ So, OP, I sympathize. Hopefully you have the option of compiling locally on the Pi, as that works for me with no issues.
2 of 5
2
Maybe an example we could help you with?
๐ŸŒ
Gauravgahlot
gauravgahlot.in โ€บ rust-getting-started
Getting started with Rust on Raspberry Pi - Gaurav Gahlot
February 21, 2026 - Current installation options: default host triple: aarch64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 info: profile set to 'default' info: default host triple is aarch64-unknown-linux-gnu info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu' info: latest update on 2023-06-01, rust version 1.70.0 (90c541806 2023-05-31) info: downloading component 'cargo' 6.7 MiB / 6.7 MiB (100 %) 1.3 MiB/s in 4s ETA: 0s info: downloading component 'clipp
๐ŸŒ
Pi-Apps
pi-apps.io โ€บ install-app โ€บ install-rustdesk-on-raspberry-pi
Install RustDesk on Raspberry Pi | Pi-Apps
Install Pi-Apps - the best app installer for Raspberry Pi. Use Pi-Apps to install RustDesk.
Find elsewhere
๐ŸŒ
Rust Programming Language
rust-lang.org โ€บ tools โ€บ install
Install Rust - Rust Programming Language
It looks like youโ€™re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.
๐ŸŒ
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 - We also assume that SSH is configured ... development machine, following the instructions from https://www.rust-lang.org/tools/install via the interactive rustup installer....
๐ŸŒ
Snapcraft
snapcraft.io โ€บ install โ€บ rustup โ€บ raspbian
Install rustup - The Rust Language installer on Raspberry Pi using the Snap Store | Snapcraft
September 17, 2025 - rustup installs The Rust Programming Language from the official release channels, enabling you to easily switch between stable, beta, and nightly compilers and keep them updated. It makes cross-compiling simpler with binary builds of the standard ...
๐ŸŒ
YouTube
youtube.com โ€บ gaurav gahlot
Install Rust on Raspberry Pi 4 - YouTube
In this video we install Rust on Raspberry Pi 4.References:Install Rust - https://www.rust-lang.org/tools/installBlog - https://gauravgahlot.in/rust-getting-...
Published ย  July 4, 2023
Views ย  1K
๐ŸŒ
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....
๐ŸŒ
Reddit
reddit.com โ€บ r/rust โ€บ installing rust in a raspberry pi 3a+
r/rust on Reddit: Installing Rust in a Raspberry Pi 3A+
January 28, 2023 -

I have got myself a new Raspberry Pi 3A+ to do some Rust development for this platform. At the moment I am interested in writing some code for this Display-O-Tron hat. So I have started by installing Rust on the Raspberry OS 64bits (Lite, since I only ssh to the machine. No XWindows) using rustup.

My awesome Raspberry Pi 3A+ in its aluminium case and with a Display-O-Tron hat

To my surprise the installation failed twice. To be completely honest, I didn't pay much attention to the output, but when I did, the third time, I realized that rustc had failed to install because the task to take care of the installation had been killed without finishing. A couple of Google searches and another attempt later I learned that the problem was that rustup was consuming all of the available memory and, hence, failing to finish. The Raspberry Pi 3A+ only has 512MB of memory, but still. I believe that running out of memory when uncompressing the downloaded files is a little bit excessive. Keep in mind that the same process works perfectly fine in a Raspberry Pi Zero W that is a less powerful device with the same amount of memory, but running the 32bit version of the same OS.

Don't get me wrong, please. This ain't a rant against rustup. I love the tool and really appreciate all the work behind it. I am just curious about your opinion on whether we should push to have an installer that is more benevolent. This has been reported before, but the conclusion was that 512MB was too tight for Rust development. What do you think?

Spoiler alert: If you run upon the same problem you can increase the swap size (512MB worked fine for me) at the price of punishing your SDCard. Instructions to do so can be found here.

Another spoiler alert: if you run the installation with RUSTUP_IO_THREADS set to 1, as suggested by u/kryps, it also works flawlessly.

๐ŸŒ
Rust Programming Language
users.rust-lang.org โ€บ help
Error installing Rust with Rustup on Raspberry Pi - help - The Rust Programming Language Forum
October 13, 2023 - Friends I am installing Rust, using Rustup on a Pi. I have done this many times, and it has always just worked. Not this time. I am at a loss. I get this error towards the end of the process stable-aarch64-unknownโ€ฆ
๐ŸŒ
El Bruno
elbruno.com โ€บ 2023 โ€บ 01 โ€บ 06 โ€บ rust-install-rust-and-hello-world-๐ŸŒ-in-raspberrypi
#Rust โ€“ Install Rust and Hello World ๐ŸŒ in #RaspberryPi
January 6, 2023 - Install Rust I'm starting this with the latest updates for Raspberry Pi OS installed. The command to install rust is this one: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Check the Rustโ€ฆ
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ other programming languages
Installing Rust on Pi 4, 32 bit Pi OS. - Raspberry Pi Forums
Seems the installer decides the Pi 4 is a 64 bit machine and it all goes wrong. To get it to work: 1) Download the installer as per the link above: ... $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2) When prompted select option "2) Custom installation" 3) When prompted for "Default host triple?" enter "arm-unknown-linux-gnueabihf" Other options are up to you, I selected "nightly" for the default toolchain, "complete" for the profile and "y" to update my PATH.
๐ŸŒ
Raspberry Pi Forums
forums.raspberrypi.com โ€บ board index โ€บ programming โ€บ other programming languages
Rust-language in Raspberry Pi OS - Raspberry Pi Forums
Last edited by sudo apt update on Thu May 30, 2024 5:47 pm, edited 1 time in total. ... Mon Apr 29, 2024 6:54 am The Rust program I wrote works very well in Raspberry Pi5. The problem is the size of the files it uses. Those text-files are 6GB and 11GB therefore doesn't fit in the RAM.I don't know of course, but I'd take a bet that this could be written using less physical memory.
๐ŸŒ
Rust Programming Language
users.rust-lang.org โ€บ help
Need Documenetation Guide On How To Build Rust On Raspberry Pi With armv7-unknown-linux-musleabihf Platform - help - The Rust Programming Language Forum
August 30, 2023 - Dear Sir/Madam, Good day. I've have some errors in installing rust for Raspberry Pi using armv7-unknown-linux-musleabihf platform, which is not supported. Full Error Logs: Error response from daemon: No such image: test-api:latest [+] Building 24.9s (10/11) docker:default => [internal] load .dockerignore 0.0s => => transferring conte...