- Compile error due to missing features (#12)
- Proc macros
gen!
,yield_!
, and friends (Thanks @DevinR528!) - Example showing error propagation
generator_mut!
andunsafe_create_generator!
macros. Uselet_gen_using!
instead.
- Implement
Stream
for generators. (requires opting in to the dependency with the featurefutures03
)
generator_mut!
, a safe wrapper on top ofunsafe_create_generator!
.- A version of
Gen
which can be shared between threads. Co
now detects when it's used after its generator has completed, and panics (in debug builds).
- Support for resume arguments, via
Coroutine
andresume_with
. - The backing state of stack-based generators is now public (
Shelf
), so you can avoid using macros if you wish.
- Improved panic messages (in debug builds) which try to teach correct usage of the library.
- Stack-based generators are now "less unsafe". The lifetime of
co
is now bound by the lifetime of the generator's state, instead of'static
. It's not fully safe yet, but it's much better. - Improved the docs.
- Moved CI from GitLab to GitHub Actions.