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

Look toward supporting native async traits #132

Open
huntc opened this issue Jan 3, 2024 · 1 comment
Open

Look toward supporting native async traits #132

huntc opened this issue Jan 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@huntc
Copy link
Collaborator

huntc commented Jan 3, 2024

Creating this is to capture the desire to support the async trait function of Rust 1.75.

In essence, the change would be to remove usage of the async-trait crate and associated macros.

@huntc
Copy link
Collaborator Author

huntc commented Jan 3, 2024

My initial experiment on this resulted in discovering that the Handler trait could not be made object-safe. This is highlighted here: https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html#dynamic-dispatch

As the compiler involves, we should loop back on this.

@huntc huntc added the enhancement New feature or request label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant