Rust Support

Anybody know of links/examples on how to get Rust running on BeagleBone Black? Would like to have running bare metal and not on Linux if possible. Any help is appreciated. Thx

I came across this RPi tutorial on creating a micro-kernel in Rust. Seems like there could be something similar for BBB. rust-embedded/rust-raspberrypi-OS-tutorials: Learn to write an embedded OS in Rust (

Sounds like a fun project, are you @BeagleBubba working on it?


Oh no, but would eventually like to. I’m just getting into Rust and was only pinging the community to see if there was already some examples to get started. From what I’m reading about Rust (and WASM), there seems to be good potential. Hope to see other smarter peeps come up with material/projects to help support Rust along with BeagleBone Black. Seems like it doesn’t get as much love as other competitor modules these days.

Please add to thread if you come across anything that can help. Thx.

For native support, there isn’t… You can run rust application in Linux. But for a full rust application that would take a lot of work…


Seems like there would be support like the others…

rust-embedded/awesome-embedded-rust: Curated list of resources for Embedded and Low-level development in the Rust programming language (

All those are your standard micro-controller, none of them listed as of today 2022-07-07T05:00:00Z are a Cortex-A class processor with external memory and a MMU…


rust-embedded/cortex-a: Low level access to Cortex-A processors (

Cool but…

[x] AArch64
[ ] AArch32

So doesn’t support the AM335x BeagleBone Black,

Looks like it only supports the RPI…



I noticed this in an older issue…

A little further in thread, there is an update of bare-metal added…
add bare metal ARM Cortex-A targets to rustc by japaric · Pull Request #68253 · rust-lang/rust (

I appreciate your insight on this topic.

Until next time… one could hope support will come one day. Thx

For cross-compiling from a Linux PC to target the BeagleBone Green, one of my students had some success and they created the following guide detailing their process:

(Created Spring 2022, using NixOs).


Thank you for sharing :slight_smile: