Closed netrome closed 2 months ago
Since Rust 1.75 async functions in traits are natively supported so we should be able to get rid of most (and hopefully all) usages of async-trait.
async-trait
We don't use async-trait anymore.
-- OR --
We only use async-trait in a few places where we explicitly need to box our futures.
Unfortunately, opaque return types are not object safe and we are extensively using trait objects, so this is a no-go for now.
Reference: https://doc.rust-lang.org/reference/items/traits.html#object-safety
Since Rust 1.75 async functions in traits are natively supported so we should be able to get rid of most (and hopefully all) usages of
async-trait
.Definition of done
We don't use
async-trait
anymore.-- OR --
We only use
async-trait
in a few places where we explicitly need to box our futures.