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

Adjust organization of compat layer #53

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Adjust organization of compat layer #53

merged 1 commit into from
Jul 27, 2024

Conversation

sticnarf
Copy link
Owner

The futures mod is moved inner deep under a compat mod, and Compat is moved out of the futures mod. This gives more flexibility if there are other types to adapt in the future.

The FuturesIoCompatExt trait is removed to avoid conflicting with other compat extension traits from like tokio. Compat::new just work nicely.

It's no problem if the user enables neither tokio nor futures-io features, as long as they implement AsyncSocket for their type.

@sticnarf sticnarf merged commit 0238e61 into master Jul 27, 2024
3 checks passed
@sticnarf sticnarf deleted the compat branch July 27, 2024 14:19
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