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

Refactor use of futures crate #434

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

tottoto
Copy link
Contributor

@tottoto tottoto commented Nov 11, 2023

Motivation

Refactoring.

Solution

  • Replaces futures_{util,core} with std's APIs when possible.
  • Uses futures_core's API via futures_util as already used at the other places.
  • Replaces futures with futures_util.
  • Makes futures_util dependency optional.

@jplatte
Copy link
Collaborator

jplatte commented Nov 12, 2023

Hm, I'm unsure whether we should really remove the futures crate usage from examples. Could you split that change into a separate PR or open an issue for discussion? Then I'd be happy to merge the remaining changes.

@tottoto
Copy link
Contributor Author

tottoto commented Nov 12, 2023

Fixed.

@getong
Copy link

getong commented Nov 16, 2023

http 1.0 is released, how about upgrading to http 1.0?

@jplatte
Copy link
Collaborator

jplatte commented Nov 16, 2023

http 1.0 is released, how about upgrading to http 1.0?

That's what #348 does. Why are you asking on this PR?

@getong
Copy link

getong commented Nov 16, 2023

sorry.

Copy link
Collaborator

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jplatte jplatte merged commit d663cbf into tower-rs:master Nov 16, 2023
11 checks passed
@jplatte
Copy link
Collaborator

jplatte commented Nov 16, 2023

@getong no worries, I was just a bit confused by it.

@tottoto tottoto deleted the futures-crates branch November 17, 2023 16:50
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.

3 participants