passkey-rs icon indicating copy to clipboard operation
passkey-rs copied to clipboard

Traits use native `async` features rather than `async_trait`

Open ActuallyHappening opened this issue 1 year ago • 1 comments

I believe the async traits can be updated to use native syntax There are caveats, but you can manually specify the Send bound on an explicit associated type. See: https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html#where-the-gaps-lie

ActuallyHappening avatar Jun 29 '24 04:06 ActuallyHappening

Thanks for the issue @ActuallyHappening! And sorry for only now getting back to you. Feel free to open up a PR with the changes. We also thought about doing this eventually, but we're currently quite busy, so can't make any promises as to when we might get around to it.

Vogeltak avatar Jul 30 '24 16:07 Vogeltak