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!: Introduce a Cargo feature for optional Hyper 0 support #304

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

PaulDance
Copy link
Contributor

Closes #294. Requires breaking changes, but only regarding the hyper1 feature's enabled module path; the default v0 is still preserved. What is proposed here in order to achieve the objective is to have both modules be re-exported when the other feature is not enabled, and have them be made public when both features are enabled at the same time. This way, the features should be kept additive: all four combinations are supported. It enables dependency de-duplication when consuming it.

@PaulDance PaulDance marked this pull request as ready for review December 7, 2024 17:22
@PaulDance PaulDance requested a review from kornelski December 7, 2024 17:22
Closes cloudflare#294. Requires breaking changes. The default v0 is changed in
favor of v1, but v0 is still kept available, just in a forced module
path. It enables dependency de-duplication when consuming it.

Signed-off-by: Paul Mabileau <[email protected]>
@PaulDance
Copy link
Contributor Author

Done! Also made it so that exclusive v0 users avoid pulling Tower uselessly by moving features around a bit, which I forgot to do in the previous PR.

@PaulDance PaulDance requested a review from kornelski December 7, 2024 21:05
@kornelski kornelski merged commit 49d5a61 into cloudflare:master Dec 7, 2024
@PaulDance
Copy link
Contributor Author

Works like a charm downstream, many thanks!

@PaulDance PaulDance deleted the hyper0-cfg branch December 7, 2024 21:28
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.

Make Hyper v0 support optional
2 participants