generator-rs
rust stackful generator library (by Xudong-Huang)
negative-impls-initiative
Lang team negative impls initiative (by rust-lang)
generator-rs | negative-impls-initiative | |
---|---|---|
3 | 2 | |
272 | 4 | |
- | - | |
7.1 | 0.0 | |
6 days ago | about 2 years ago | |
Rust | ||
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of generator-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
-
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.
negative-impls-initiative
Posts with mentions or reviews of negative-impls-initiative.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-06.
-
What is the next big thing coming to Rust
https://github.com/rust-lang/negative-impls-initiative might give a new way towards this -- if people have promised that a type is !Copy, as opposed to just not having set it yet, we have a bit more freedom in what we can allow.
-
Conflicting implementation on constrained blanket impl
Implementing a trait for a type is not a breaking change, so as far as the compiler knows std could implement Unpin for PhantomPinned in the future, which would lead to overlapping impls in your own crate if your code was allowed. Of course, in reality we know PhantomPinned will never actually be Unpin; the upcoming "negative impls" feature will allow the compiler to know this too.
What are some alternatives?
When comparing generator-rs and negative-impls-initiative you can also consider the following projects:
genawaiter - Stackless generators on stable Rust.
hashes - Collection of cryptographic hash functions written in pure Rust
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
rfcs - RFCs for changes to Rust
oxidoist-api - A Rust Crate providing an API wrapper for Todoist.
book - The Rust Programming Language
sdf_2d - 2D Signal Distance Field software (cpu) renderer
num-format - A Rust crate for producing string representations of numbers, formatted according to international standards
wincompose - 🔣 Compose Key for Windows