-
libfringe
a Rust library implementing safe, lightweight context switches, without relying on kernel services
There’s a bunch of library-based implementations of coroutines for rust. I recall https://github.com/edef1c/libfringe being the most interesting one, but it is quite dated. I don’t think there’s a lot of community interest in stackfull coroutines at this point.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
This library https://github.com/Xudong-Huang/may implement Stackful Coroutines in Rust which I believe is pretty close to what you're asking about. I believe it's a reasonably complete implementation, but it doesn't have much traction because most of the Rust ecosystem is using either async/await or native threads.
-
That's how it used to work. They removed it in 2014. Read the RFC for details on why.
Related posts
-
What's the Benefit/Allure of Async/Await vs. CSP/Green Threads (and Other Concurrency Models)?
-
async fn calls can lead to surprising performance problems if they are nested too deeply
-
Rust vs Go
-
Is there any part of the Standard Library that really impresses you?
-
Why does Rust not have a standard async runtime?