Skip to content

Replace async-trait with native async fn in traits - #46

Open
FalkWoldmann wants to merge 1 commit into
dermesser:masterfrom
FalkWoldmann:drop-async-trait
Open

FalkWoldmann wants to merge 1 commit into
dermesser:masterfrom
FalkWoldmann:drop-async-trait

Conversation

@FalkWoldmann

Copy link
Copy Markdown

This drops the async-trait dependency and uses native async fn in the four async traits. Since the futures aren't boxed as dyn Future anymore, they're Send again whenever the reader or writer is, which fixes the regression from #32 while !Send readers keep working. There's a small compile test for that in tests/async_send.rs

This branch has not been deployed

No deployments
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.

1 participant