Hacker GitHub

← All repos

embassy-rs/embassy

View on GitHub ↗ ★ 10,058 Rust

Modern embedded framework, using Rust and async.

33 mentions on Hacker News by 33 people: 6 stories, 27 comments · first 2021-05-06 · latest 2026-10-24

Mentions per year 33 mentions · busiest year 2023 (7)
20082026
  1. It would be really great to see how it fits in embedded systems, MCUs in particular! Embassy ( https://github.com/embassy-rs/embassy ) uses this concept of no heap allocation and I find it really solid. Even if you write in C, most of the…
    comment by kadw · 2026-10-24 · in The Goose Programming Language
  2. …times a day and haven't lost an MCU (AVR-Rust, ESP-Rust, STM-Rust) yet due to too many writes. [0] https://github.com/embassy-rs/embassy
    comment by officialchicken · 2026-07-29 · in The Rust on ESP Book
  3. …on Codeberg, and tests/integration.rs didn't have any async. For embedded, I have had my eye on https://github.com/embassy-rs/embassy (which has an async runtime for embedded) and would love a nice locking crate to go with it.
    comment by electromech · 2026-04-11 · in Surelock: Deadlock-Free Mutexes for Rust
  4. …to do it. Even if you don't know Rust, I'd suggest poking around at some of the examples here: https://github.com/embassy-rs/embassy/tree/main/examples And if you want, look into the code behind it.
    comment by jamesmunns · 2026-04-04 · in Go on Embedded Systems and WebAssembly
  5. …async state machines is predictable, so you can use Embassy for hard real-time work. See example: https://github.com/embassy-rs/embassy/blob/main/examples/nrf... Additionally the executor has support for scheduling tasks by priority or…
  6. ▲ 323
    Embassy: Modern embedded framework, using Rust and async
    story by birdculture · 2026-01-08 · 161 comments
  7. …You can look at asynch and things like https://github.com/rtic-rs/rtic and https://github.com/embassy-rs/embassy for common embedded patterns. You handle DMA the same way as on any other system - e.x. you mark the memory as system/un
  8. …things differently. Keep in mind that one requirement is being able to create things like Embassy. https://github.com/embassy-rs/embassy
    comment by ViewTrick1002 · 2025-12-05 · in Thoughts on Go vs. Rust vs. Zig
  9. Embassy got _some_ support for rp2350 for quite some time now https://github.com/embassy-rs/embassy
    comment by boguscoder · 2025-03-19 · in Rust on the RP2350 (2024)
  10. https://github.com/embassy-rs/embassy
    comment by iknowstuff · 2025-03-17 · in Zlib-rs is faster than C
  11. ▲ 1
    Embassy: Modern embedded framework, using Rust and async
    story by tosh · 2025-03-16 · 0 comments
  12. …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…
    comment by follower · 2025-01-28 · in Google open-sources the Pebble OS
  13. Equivalent in Rust: https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
    comment by MuffinFlavored · 2024-08-16 · in Building a GATT Server on Pi Pico W
  14. …Rust's async is not just about webdev; it has had success in embedded contexts e.g. the popular https://github.com/embassy-rs/embassy?tab=readme-ov-file#emb...
    comment by ChrisSD · 2024-07-22 · in Pin
  15. ▲ 3
    Embassy-rs/embassy: Modern embedded framework, using Rust and async
    story by rcarmo · 2024-07-05 · 0 comments
  16. …by probe-rs [4] at some point, it's just much more convenient to flash and debug with it. [1]: https://github.com/embassy-rs/embassy/tree/main/examples/rp/... [2]: https://github.com/JoNil/elf2uf2-rs [3]:…
    comment by dgroshev · 2024-06-12 · in I like the RP2040
  17. Running the Embassy RP2040 USB CDC ACM serial example takes about 5 seconds on a Pico. https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
  18. …at a higher level as Go's approach of channels and threads, but it's cool in embedded, read this: https://github.com/embassy-rs/embassy?tab=readme-ov-file#rus... "Rust's async/await allows for unprecedently easy and efficient multitasking…
    comment by Ciantic · 2024-01-23 · in Avoid Async Rust at All Cost
  19. …> } And this is how to do it using embassy, which is an async framework for embedded in rust: https://github.com/embassy-rs/embassy/blob/main/examples/rp/...
  20. …i2c) Not specific to the ESP platforms, but Embassy offers a more useful example of async i2c here: https://github.com/embassy-rs/embassy/blob/main/examples/rp/... (and it would work the same on ESP)
    comment by coder543 · 2023-09-30 · in Rust on Espressif chips
  21. …which allows tasks on the higher priority executor to interrupt other tasks. Here's an example https://github.com/embassy-rs/embassy/blob/main/examples/nrf...
  22. …are some general RTOSes for Rust, and they do tend to use async: * https://rtic.rs/2/book/en/ * https://github.com/embassy-rs/embassy (this one is used in the article) * https://tockos.org/
    comment by steveklabnik · 2023-07-19 · in Asynchronous Rust on Cortex-M microcontrollers
  23. …board. Cargo allows configuring a custom runner, which is what the embassy examples do [0]. [0]: https://github.com/embassy-rs/embassy/blob/main/examples/stm...
    comment by JoshMcguigan · 2023-07-01 · in Rust on Espressif chips
  24. ▲ 7
    Embassy: Modern embedded framework, using Rust and async
    story by JadedBlueEyes · 2023-06-11 · 0 comments
  25. …task, but honestly it is genuinely useful. Even in places you wouldn't expect, e.g. in embedded: https://github.com/embassy-rs/embassy And AFAIK there are plans to use async Rust in the Linux kernel.
    comment by kouteiheika · 2023-02-05 · in I use C when I believe in memory safety
  26. …is but for a project as important as Linux I think it has to be graded as "needs improvement." [0] https://github.com/embassy-rs/embassy [1] https://linux-test-project.github.io/
  27. …rtic. For espressif chips (like the esp32), support is being worked on by the manufacturer itself: https://github.com/embassy-rs/embassy/issues/745 Here an overview of microcontrollers in the (official) Arduino family:…
    comment by eldruin · 2022-08-03 · in Introducing multitasking to Arduino
  28. ▲ 2
    Embassy – Modern embedded framework, using rust and async
    story by maydemir · 2022-05-03 · 0 comments
  29. …(not specific to async) that generates the PAC for any stm32 chip. Read more about embassy here: https://github.com/embassy-rs/embassy
    comment by lulf · 2021-11-18 · in Learning Rust for Embedded Systems
  30. I guess when mentioning Rust on Nordic controllers one should also mention these excellent projects https://github.com/embassy-rs/embassy https://github.com/embassy-rs/nrf-softdevice Together with https://github.com/nrf-rs/nrf-hal these…
    comment by zwirbl · 2021-09-21 · in Rust on the MOS 6502: Beyond Fibonacci
  31. There is an executor project: https://github.com/embassy-rs/embassy I'm very excited about this for one simple stupid reason: sleep(). Awaiting a timer delay deep inside some code is gonna be amazing . With typical sync code, you basically…
  32. ▲ 2
    Ask HN: Thoughts on Async in Embedded?
    story by the__alchemist · 2021-07-15 · 4 comments
  33. For embedded async executors check out Embassy. It works well and is under active development. https://github.com/embassy-rs/embassy