6 releases
Uses old Rust 2015
0.2.0-alpha | Mar 8, 2018 |
---|---|
0.1.4 | May 25, 2018 |
0.1.2 | Apr 11, 2018 |
0.1.1 | Nov 19, 2017 |
0.1.0 | Oct 28, 2017 |
493 downloads per month
Used in futures-await
27KB
569 lines
Procedural macro for the #[async]
attribute.
This crate is an implementation of the #[async]
attribute as a procedural
macro. This is nightly-only for now as it's using the unstable features of
procedural macros. Furthermore it's generating code that's using a new
keyword, yield
, and a new construct, generators, both of which are also
unstable.
Currently this crate depends on syn
and quote
to do all the heavy
lifting, this is just a very small shim around creating a closure/future out
of a generator.
Dependencies
~1.5MB
~43K SLoC