async/await on embedded Rust - Ferrous Systems
In a previous post we explored what needs to be done on the rustc side to bring async/await to no_std Rust. In this post we'll explore what could be done once async/await is available in no_std land and why we think async/await is a big deal for embedded...
Do you need help with coding? Get in touch Get updates In a previous post we explored what needs to be done on the rustc side to bring async/await to no_std Rust. In this post we'll explore what could be done once async/await is available in no_std land and why we think async/await is a big deal for embedded development. From blocking to non-blocking A blocking blinky program looks like this: use cortex_m_rt :: entry ; use embedded_hal :: blocking :: DelayMs as _ ; // `delay_ms` trait use hal ::{ Led , Timer }; #[entry] fn main () -> ! { let mut led = Led :: new (); let mut timer = Timer :: ne
Explore this link on the map →saved by
related reading
- no_std async/await - soon on stable - Ferrous Systemsferrous-systems.com
- Bringing async/await to embedded Rust - Ferrous Systemsferrous-systems.com
- Concurrency Patterns in Embedded Rust - Ferrous Systemsferrous-systems.com
- Let futures be futureswithout.boats
- Why async Rust?without.boats
- Async Rust Is A Bad Languagebitbashing.io
- Why choose async/await over threads? | Hacker Newsnews.ycombinator.com
- Who Runs Your Rust Future? Hands-On Intro to Async Rust | AIBodhaibodh.com
- Introduction - Asynchronous Programming in Rustrust-lang.github.io
- Is there a good read on different async runtimes? - help - The Rust Programming Language Forumusers.rust-lang.org
- Writing an OS in Rustos.phil-opp.com
- Fundamentals of Asynchronous Programming: Async, Await, Futures, and Streams - The Rust Programming Languagedoc.rust-lang.org