google / tarpc

An RPC framework for Rust with a focus on ease of use.
MIT License
3.09k stars 189 forks source link

Support for Async Fn in Trait? #409

Closed ShaneMurphy2 closed 5 months ago

ShaneMurphy2 commented 8 months ago

As async_fn_in_trait is stable on nightly, is there plans to support it in the generated code? I recognized it would be a significant refactor, but it would be nice to avoid having to Box futures.

tikue commented 8 months ago

Hey, thanks for your interest! Yes, I have a branch that uses async_fn_in_trait on nightly (it probably needs some updates, as it's about 10 months old now). Once async_fn_in_trait is released on stable, I'll merge to master.

ShaneMurphy2 commented 8 months ago

Wonderful, thanks!

tikue commented 5 months ago

I think this was fixed by https://github.com/google/tarpc/pull/413 :)