Crate cgp_async_macro

Source
Expand description

This library provides helper macros for using async functions in traits.

Attribute Macrosยง

native_async
The #[async_trait] macro is used to desugar async functions in traits to return impl Future + Send.
strip_async
This macro can be used in place of the native_async macro to strip away all use of async and .await syntax. This helps emulate async-generic by turnining async functions into sync functions.