Rust Microcontroller

Open-source Rust projects categorized as Microcontroller

Top 11 Rust Microcontroller Projects

Microcontroller
  1. tock

    A secure embedded operating system for microcontrollers

    Project mention: Pebble smartwatch firmware released as open-source | news.ycombinator.com | 2025-01-27

    TL;DR: No. Maybe? Depends.

    It's probably reasonable to make a distinction between "Real Time" desktop/server OS (on CPUs) vs "Real Time" embedded hardware OS (on MCUs).

    (Even aside from any hard-/soft- real time distinction.)

    On the embedded side, in addition to FreeRTOS (upon which Pebble OS is built), I'm aware of others with reasonably high profile such as:

    * Zephyr (Linux Foundation, C): https://en.wikipedia.org/wiki/Zephyr_(operating_system)

    * NuttX (Apache Software Foundation, C & C++): https://en.wikipedia.org/wiki/NuttX

    In addition, there's also some "up & coming" Rust language projects which fall somewhere along the "framework" to "OS" spectrum (in part, via https://arewertosyet.com):

    * Tock: https://github.com/tock/tock

    * Embassy: https://github.com/embassy-rs/embassy

    * Hubris: https://hubris.oxide.computer

    On the desktop side, I seem to recall in the past, OS such as BeOS & QNX have been presented as a possible future for real time desktop OS that hasn't arrived.

    As someone else already mentioned, PREEMPT_RT being merged for Linux is a recent development somewhat in this space which could have impact on both desktop & "embedded" situations but suitability varies dependent on, say, whether you're wanting to use it for audio production versus controlling some 10 tonne robot operating next to humans.

    Hope this at least goes some way to answering your question. :)

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. rtic

    Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers

    Project mention: Snowdrop OS – a homebrew operating system from scratch, in assembly language | news.ycombinator.com | 2025-01-24

    Fuchsia has a crap load of wild ideas. Microkernel, capabilities, weird app installation system (I think they're trying to make apps more like websites).

    https://rtic.rs/ is a pretty cool idea for an embedded RTOS (sort of).

    Honestly though there's still stuff in Plan 9 that is way more advanced than what Linux does, e.g. https://9p.io/sys/doc/lexnames.html

  4. cortex-m

    Low level access to Cortex-M processors

  5. cortex-m-quickstart

    Template to develop bare metal applications for Cortex-M microcontrollers

  6. svd2rust

    Generate Rust register maps (`struct`s) from SVD files

    Project mention: Show HN: Sonatino – compact audio dev board based on ESP32-S3 | news.ycombinator.com | 2024-07-03
  7. nrf-hal

    A Rust HAL for the nRF family of devices

  8. embedded-alloc

    A heap allocator for embedded systems

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. ariel-os

    Ariel OS is a library operating system for secure, memory-safe, low-power Internet of Things, written in Rust

    Project mention: Show HN: Ariel OS – an embedded Rust library OS for small MCUs | news.ycombinator.com | 2025-03-31
  11. rustBoot

    rustBoot is a standalone bootloader written entirely in `Rust`, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.

  12. chirp8-avr

    CHIP-8 implementation in Rust targeting AVR microcontrollers

  13. avr-tester

    `#[test]` meets simavr!

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Microcontroller discussion

Log in or Post with

Rust Microcontroller related posts

  • Snowdrop OS – a homebrew operating system from scratch, in assembly language

    3 projects | news.ycombinator.com | 24 Jan 2025
  • When would you (not) recommend Go over Rust?

    2 projects | /r/golang | 10 Jul 2023
  • RTIC (The hardware accelerated Rust RTOS) releases v2.0.0!

    1 project | /r/rust | 1 Jun 2023
  • AvrTester: write Rust-based tests for your AVR firmware! v0.2.1

    1 project | /r/rust | 8 Mar 2023
  • When is the right time to change jobs?

    1 project | /r/embedded | 19 Feb 2023
  • Question: Elegant way of getting a 'static reference?

    2 projects | /r/rust | 6 Dec 2022
  • Safely obtain static mutable reference in no_std

    1 project | /r/rust | 11 Nov 2022
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 18 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Microcontroller projects in Rust? This list will help you:

# Project Stars
1 tock 5,785
2 rtic 1,981
3 cortex-m 889
4 cortex-m-quickstart 862
5 svd2rust 771
6 nrf-hal 538
7 embedded-alloc 380
8 ariel-os 364
9 rustBoot 263
10 chirp8-avr 49
11 avr-tester 25

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com