genawaiter icon indicating copy to clipboard operation
genawaiter copied to clipboard

Stackless generators on stable Rust.

Results 19 genawaiter issues
Sort by recently updated
recently updated
newest added

I'd like to use this crate in an embedded environment, so I've gone through and replaced all referenced to `std` with `core` except for `alloc::sync::Arc` which is required for the...

Thank you for making `genawaiter`! ## Configuration - rustc 1.59.0 (9d1b2106e 2022-02-23) - genawaiter v0.99.1 ## Code ```rust use genawaiter::{ rc::gen, yield_, }; fn main() { let mut printer =...

Should this library be used in real projects or is it unmaintained? There seems to be no activity recently and there is one unattended pull request.

## replace proc_macro_hack with proc_macro This allows nested macro executions (and therefore allows macros in other crates to abstract the gen macros). ## add rust-toolchain with nightly toolchain Otherwise, `cargo...

I think it is possible [to make stack generator safe](https://github.com/whatisaphone/genawaiter/blob/45c10c223b92da215e182bc3eff0d5e09bf813f4/src/stack/generator.rs#L74-L76). The `Co` object is not `Clone`, therefore the only possibility to outlive the `Gen` is to return it from the...

Rust 1.45 enabled native support for `#[proc_macro]` in expression position, which supersedes `proc-macro-hack` as noted itself. However, since the decl macros in `genawaiter-macro` are calling proc macros in `genawaiter-proc-macro`, the...

I have the following bit of code and it won't compile: use {serde::{de::DeserializeOwned}, std::io::Read, genawaiter::{yield_, stack::let_gen}}; fn stream_iter(reader: U) -> impl Iterator { let_gen!(output, { loop { yield_!(serde_json::from_reader(reader)); } });...

Hi! I'm trying to write a library where I associate custom structs to generators via a trait with an associated type, however I don't know how to restrict the type...

Hello @whatisaphone, I see that the Cargo.toml specifies the license as MIT. Would you be willing to add a LICENSE file to the repo that matches the license in the...

Just something I've run into and have been thinking about. I'm not precisely sure how much it would impact the API (probably too much!), and what the advantages and disadvantages...