1Password / passkey-rs

A framework for defining Webauthn Authenticators that support passkeys
Apache License 2.0
116 stars 17 forks source link

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

Open ActuallyHappening opened 2 months ago

ActuallyHappening commented 2 months ago

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

Vogeltak commented 1 month ago

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.