fMeow / maybe-async-rs

A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates
https://docs.rs/maybe-async
MIT License
146 stars 17 forks source link

Support impl blocks for types #24

Closed stefunctional closed 8 months ago

stefunctional commented 8 months ago

This adds support for impl Type blocks to maybe_async, must_be_async and must_be_sync.

The changes are minimal as this reuses the machinery already in place for impl Trait for Type.

The main motivation for this change is better interoperability with macros from other crates that apply to impl blocks and need functions to be resolved to async/sync before they run.

Resolves #18

stefunctional commented 8 months ago

Thank you for merging it and publishing so quickly!

fMeow commented 8 months ago

My pleasure :)