generator-rs
genawaiter
Our great sponsors
generator-rs | genawaiter | |
---|---|---|
3 | 11 | |
272 | 428 | |
- | - | |
7.1 | 0.0 | |
3 days ago | almost 2 years ago | |
Rust | Rust | |
Apache License 2.0 | - |
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.
generator-rs
-
What's the Benefit/Allure of Async/Await vs. CSP/Green Threads (and Other Concurrency Models)?
lot of unsafe code assumes you can't leak stackframes, which suspendable APIs however inherently can, hence why scoped tasks are unsound. This is not different with green threads, see for example this issue in generator, the library that may uses for green threads.
- What is the next big thing coming to Rust
-
Hey Rustaceans! Got an easy question? Ask here (8/2021)!
Using crates like generator (for Iterator) or async-stream (for Stream). Both have nice usage examples.
genawaiter
-
Letlang — Roadblocks and how to overcome them - My programming language targeting Rust
Yes, Letlang is translated to Rust and the runtime is implemented in Rust, using tokio and genawaiter. The compiler itself is also built in Rust.
-
Hey Rustaceans! Got a question? Ask here (7/2023)!
(note that genawaiter itself doesn't support no_std environments, but there's a merge request for that.)
- What is the next big thing coming to Rust
-
A personal list of Rust grievances
> `async` to make fake generators.
Genawaiter[0] is one of them.
[0]: https://github.com/whatisaphone/genawaiter
-
Generalizing coroutines - The Rust Language Design Team
Are you aware of the genawaiter crate?
-
Do not wait for Rust generators
A warning though: genawaiter doesn't seem to be maintained. The last commit is 2 years old, and issues are not active (I opened one that I find somewhat critical: https://github.com/whatisaphone/genawaiter/issues/35).
-
Hey Rustaceans! Got an easy question? Ask here (46/2021)!
There's e.g. https://github.com/whatisaphone/genawaiter, but you can also use yield directly (https://doc.rust-lang.org/beta/unstable-book/language-features/generators.html).
- What feature would you like to see implemented/stabilized?
- What's the outlook on generator functions in Rust?
-
Generators in Rust?
If you're interested in something that can be used right now, on stable, you should take a look at the genawaiter crate, it reimplements generators with async.
What are some alternatives?
hashes - Collection of cryptographic hash functions written in pure Rust
rust-rdkafka - A fully asynchronous, futures-based Kafka client library for Rust based on librdkafka
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
kbio - Another Async IO Framework based on io_uring
rfcs - RFCs for changes to Rust
polonius - Defines the Rust borrow checker.
oxidoist-api - A Rust Crate providing an API wrapper for Todoist.
rocket-lamb - A crate to allow running a Rocket webserver as an AWS Lambda Function with API Gateway or an Application Load Balancer
book - The Rust Programming Language
srgb.rs - Implementation of sRGB primitives and constants
sdf_2d - 2D Signal Distance Field software (cpu) renderer
its_rusty - learning rust