embassy
smoltcp
embassy | smoltcp | |
---|---|---|
80 | 10 | |
6,034 | 3,879 | |
6.4% | 1.6% | |
9.9 | 8.8 | |
7 days ago | 21 days ago | |
Rust | Rust | |
Apache License 2.0 | BSD Zero Clause License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
embassy
- Embassy: Replacing RTOS with a Rust async scheduler
-
Apple is Killing Swift – A great language strangled by governance
The other comment implied it but I think it's worth pointing out that:
> embedded applications that can't have asynchronous execution
Is most definitely not the case.
They can't have the same type of async runtime that would be optimal for a web server or the likes (and I'm not sure all desktop applications and web servers are going to always benefit from the same runtime in the same way), but that's a point in favour of Rust's model imho
If you're interested this is an embedded async runtime that's expected to run in no-std and no-alloc environments
https://embassy.dev/
-
Impl Snake For Micro:bit - Embedded async Rust on BBC Micro:bit with Embassy
In this article, I will guide you through creating a Snake game in embedded Rust on the BBC Micro:bit using the asynchronous framework Embassy.
-
A review after using Rust on embedded in production for over a year
Rust solved this by autogenning code from mfgr published device xml descriptors. Eg https://embassy.dev/
Better than any C(++) embedded hal I've used
- Building a GATT Server on Pi Pico W
- Embassy-rs/embassy: Modern embedded framework, using Rust and async
- Embedded Swift [video]
-
I like the RP2040
If I get your question right, you still need some host software (like a rust compiler)! It's not exactly micropython experience.
The bare minimum would be one of the examples [1] compiled with a Rust compiler and then transformed into a .uf2 file with elf2uf2 [2]. You can then just drag and drop the .uf2 file into the "mass storage device" presented by the bootloader. To get the bootloader to mount, you press a button on a Raspberry Pico (or short two outputs if you're using bare RP2040) while plugging it in.
You'll probably want a debug probe [3] driven 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]: https://www.raspberrypi.com/documentation/microcontrollers/d...
[4]: https://probe.rs/
- Embassy 在 Blue Pill 上的点灯案例
-
Why choose async/await over threads?
thanks. looked that up. for the curious: https://embassy.dev/
smoltcp
- LwIP – Lightweight IP Stack
-
Implementing TCP in Rust
There is also the Rust TCP/IP stack https://github.com/smoltcp-rs/smoltcp which is not mentioned as reference (and it's probably more useful to have a look there than querying ChatGPT).
- RFC2217 implementation written in Rust
-
Create TCP connection with Pnet
Trying to dig out a link for you, will edit when I find it; TCP and Layer 4 raw sockets do not play nicely together on many platforms. You’ll probably have to send at the datalink layer and/or use something like https://github.com/smoltcp-rs/smoltcp
-
Introduction to TCP and Sockets
This seems close to what you're asking for: https://github.com/smoltcp-rs/smoltcp
A small-ish tcp/ip stack, in rust.
- smoltcp is a standalone, event-driven TCP/IP stack that is designed for bare-metal, real-time systems. Its design goals are simplicity and robustness.
-
Rust embedded and networking
You can look into smoltcp
-
What are some low level networking libraries that y'all recommend?
smoltcp
-
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
This here is a kernel including a memory-safe TCP/IP stack (https://github.com/smoltcp-rs/smoltcp/), and not having it crash or be full of security vulnerabilities due to preventable memory corruption is a quality beyond personal language preferences.
-
Let's suppose for a minute that I've COMPLETELY lost my mind
Oh, and you also probably want to check out smoltcp, a userspace/"no operating system required" networking stack that we often use in embedded rust.
What are some alternatives?
rtic - Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers
tock - A secure embedded operating system for microcontrollers
mosys
nrf-hal - A Rust HAL for the nRF family of devices
rust-raspberrypi-OS-tutorials - :books: Learn to write an embedded OS in Rust :crab:
crates.io - The Rust package registry
OpenSK - OpenSK is an open-source implementation for security keys written in Rust that supports both FIDO U2F and FIDO2 standards.
rusty-clock - An alarm clock with environment stats in pure bare metal embedded rust
buildroot - Buildroot, making embedded Linux easy. Note that this is not the official repository, but only a mirror. The official Git repository is at https://gitlab.com/buildroot.org/buildroot/. Do not open issues or file pull requests here.
rust-mos - Empowering everyone to build reliable and efficient software.
headcrab - A modern Rust debugging library 🦀