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

Remove async-trait and most of BoxedFuture #1042

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

al8n
Copy link
Collaborator

@al8n al8n commented Apr 15, 2024

I remove the async-trait and most of BoxedFuture, but there is one trait ClientEventsProxy, I cannot change it to async fn in trait style because of currently, AFIT is not object safe, and we use Box in other places. In theory, we can use a definition like AsyncWrite/AsyncRead to make this trait object safe, but it requires some breaking changes.

@al8n al8n requested a review from iduartgomez April 15, 2024 05:49
@al8n al8n self-assigned this Apr 15, 2024
crates/core/src/client_events.rs Outdated Show resolved Hide resolved
@iduartgomez iduartgomez merged commit 12fdde3 into main Apr 15, 2024
3 of 4 checks passed
@iduartgomez iduartgomez deleted the remove-async-trait branch April 15, 2024 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants