#generic #async #future #proc-macro #macro

macro async-generic

Write code that can be both async and synchronous without duplicating it

5 releases (2 stable)

1.1.0 Mar 29, 2024
1.0.0 Dec 26, 2023
0.1.2 Sep 28, 2023
0.1.1 Sep 22, 2023
0.1.0 Sep 22, 2023

#1366 in Procedural macros

Download history 1314/week @ 2024-01-23 11670/week @ 2024-01-30 11798/week @ 2024-02-06 7149/week @ 2024-02-13 9460/week @ 2024-02-20 10268/week @ 2024-02-27 9794/week @ 2024-03-05 1508/week @ 2024-03-12 1239/week @ 2024-03-19 1627/week @ 2024-03-26 1274/week @ 2024-04-02 1406/week @ 2024-04-09 1352/week @ 2024-04-16 1490/week @ 2024-04-23 1902/week @ 2024-04-30 1570/week @ 2024-05-07

6,589 downloads per month
Used in 2 crates (via c2pa)

MIT/Apache

9KB
168 lines

About this crate

This crate is derived from the maybe-async crate as of September 2023.

Many thanks to Guoli Lyu for their initial work on this problem space.

Dependencies

~310–760KB
~18K SLoC