Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove dependency on async-trait #54

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

augustoccesar
Copy link
Collaborator

Description

With the release of Rust 1.75, the first round of stabilization of async in traits is out! This does come with its own set of caveats. But those seem to be mostly for public traits and issues with bounds. The trait that we use it is, theoretically, public. But we intend it to be used by the other modules within the workspace, so it seems like it might be fine to move from the async-trait.

It might be good to test on the worker scenario, since there might be something there that I'm missing, but it seems by the tests and checks that is all working.

### Description
With the release of Rust [1.75](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html#async-fn-and-return-position-impl-trait-in-traits), the first round of stabilization of async in traits is out! This does come with its own [set of caveats](https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html#where-the-gaps-lie). But those seem to be mostly for public traits.
The trait that we use it is, theoretically, public. But we intend it to be used by the other modules within the workspace, so it seems like it might be fine to move from the async-trait.

It might be good to test on the worker scenario, since there might be something there that I'm missing, but it seems by the tests and checks that is all working.
Copy link
Contributor

@ostenbom ostenbom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super worried about the worker, as long as it compiles, I think we should be good to go! :shipit:

@augustoccesar augustoccesar merged commit a49d908 into main Jan 3, 2024
4 checks passed
@augustoccesar augustoccesar deleted the remove-async-trait-dependency branch January 3, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants