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

chore(examples/hyper): Port to hyper 1.x #195

Merged
merged 3 commits into from
May 13, 2024

Conversation

levaitamas
Copy link
Contributor

This PR ports the hyper example to hyper 1.x.
All kudos goes to @junkurihara (#184).

Closes the erroneous #187.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Thank you both for the work!

Cargo.toml Outdated
@@ -35,7 +35,9 @@ rand = "0.8.4"
tide = "0.16"
actix-web = "4"
tokio = { version = "1", features = ["rt-multi-thread", "net", "macros", "signal"] }
hyper = { version = "0.14.16", features = ["server", "http1", "tcp"] }
hyper = { version = "1.3.1", features = ["server", "http1"] }
hyper-util = { version = "0.1.3", features = ["full"] }
Copy link
Member

Choose a reason for hiding this comment

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

Are all features required? E.g. the client feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch! Feature tokio is sufficient. Fixed in 043fdd3.

@mxinden
Copy link
Member

mxinden commented May 13, 2024

Thanks for the follow-up! Can you fix the CI rustfmt failure @levaitamas? Otherwise this is good to merge.

levaitamas and others added 3 commits May 13, 2024 20:35
Based on prometheus#184

Co-authored-by: Jun Kurihara <junkurihara@users.noreply.github.com>
Signed-off-by: Tamas Levai <levait@tmit.bme.hu>
Signed-off-by: Tamas Levai <levait@tmit.bme.hu>
Signed-off-by: Tamas Levai <levait@tmit.bme.hu>
@levaitamas
Copy link
Contributor Author

Thanks for the follow-up! Can you fix the CI rustfmt failure @levaitamas? Otherwise this is good to merge.

Thanks! Fixed in c524c73.

@mxinden mxinden merged commit bf196d7 into prometheus:master May 13, 2024
10 checks passed
@levaitamas levaitamas deleted the examples-hyper-1 branch May 13, 2024 20:09
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