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

Replace futures-util with optional futures-io dep #1263

Merged
merged 9 commits into from Dec 21, 2021
Merged

Replace futures-util with optional futures-io dep #1263

merged 9 commits into from Dec 21, 2021

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Dec 19, 2021

A trivial amount of additional code lets us save another dep and be a bit more accessible to new users (see e.g. #1262).

It's simple enough to Pin::new ourselves.
It's simple enough to Pin::new ourselves.
This is our last hard dep on futures_util, and not too difficult to do
by hand.
@Ralith
Copy link
Collaborator Author

Ralith commented Dec 19, 2021

This also improves consistency with tokio primitives, e.g. mpsc::Receiver::recv.

@Ralith Ralith force-pushed the inherent-next branch 2 times, most recently from a3316d1 to 0076dbb Compare December 19, 2021 23:36
@djc
Copy link
Collaborator

djc commented Dec 20, 2021

Should we use futures-io as the optional dep rather than futures-util? Otherwise this looks great!

@Ralith
Copy link
Collaborator Author

Ralith commented Dec 20, 2021

Good catch, I didn't know that crate existed! Fixed.

@Ralith Ralith changed the title Make futures-util dependency optional Replace futures-util with optional futures-io dep Dec 20, 2021
@djc djc merged commit 4e0f7c5 into main Dec 21, 2021
@djc djc deleted the inherent-next branch December 21, 2021 06:03
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.

None yet

2 participants