Rust Embedded Systems

Open-source Rust projects categorized as Embedded Systems Edit details

Top 4 Rust Embedded System Projects

  • defmt

    Efficient, deferred formatting for logging on embedded systems

    Project mention: Are costly debuggers from vendors necessary? | reddit.com/r/embedded | 2022-06-22

    yYeah. For example, instead of printf("Variable X = %d, y=%f", x, y), where the micro then formats the string and pushes it out a serial port, blocking until its sent, I can write LOG("Variable X = %d, Y=%f, x, y), and what actually happens is a unique pointer to the string, and a tagged raw int and float get pushed onto a buffer, which takes about 15 instructions and takes up 16 bytes in the buffer. The buffer is then asynchronously sent out over the serial port, and the PC knows how to map the string ID to the actual string (this can by dynamically fetched from the micro or stored like debug info if there's not enough flash for the strings), and applies the formatting. There's an added bonus that it's super easy to take any variable which is logged and plot it live over time. There's also stuff like if the system crashes and the watchdog resets it, the buffer can be read out from memory to catch anything which wasn't sent out yet. It's a bit more of a complex system to set up but it really makes printf feel like the stone age when you get to using it. For an example of a similar system in rust, https://github.com/knurling-rs/defmt is implementing the same ideas (I don't know of any publicly available equivalent in C or C++, but you can implement it the same, though C++ is easier and it helps to know your way around a linker script to make something properly ergonomic).

  • optimization-engine

    Nonconvex embedded optimization: code generation for fast real-time optimization

    Project mention: Is there a library for non-linear optimization in Rust? | reddit.com/r/rust | 2022-01-27

    I found this library here called the optimization engine . While it looks really good and thorough, I don't believe it is as feature rich as the C++ Ceres Solver. But mabye there are other libraries out there that people know of which could complement?

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • rust-aluvm

    Rust implementation of AluVM (RISC functional machine)

    Project mention: Any one smart enough to answer this? | reddit.com/r/Bitcoin | 2021-12-18
  • i2clib

    Library for i2c manipulation in Rust. Designed for OLED displays on Raspberry PI [paused dev because my screen is broken]

    Project mention: Let me show you my projects | reddit.com/r/rust | 2022-04-10

    I'm interested about Linux and Raspberry PI, so I've made an Raspberry PI library in Rust : raslib, just little things but I also made this (linked to "raslib") : i2clib, to do electronics stuff.

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). The latest post mention was on 2022-06-22.

Rust Embedded Systems related posts

Index

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

Project Stars
1 defmt 416
2 optimization-engine 261
3 rust-aluvm 18
4 i2clib 3
Find remote jobs at our new job board 99remotejobs.com. There are 3 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com