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

Dependency hell: poem fails to build when hyper-util 0.1.1 is selected #798

Open
thornleywalker opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@thornleywalker
Copy link

thornleywalker commented Apr 10, 2024

When built alone, or as the only dependency to a project, hyper-util 0.1.3 tends to be picked, which builds great. However, when hyper-util 0.1.1, the version specified in poem/Cargo.toml and poem-grpc.Cargo.toml, is selected (because of other dependencies, committed Cargo.lock, etc.) the poem crate can't build with the server feature, since the Builder::serve_connection_with_upgrades method used towards the end of poem/src/server.rs > serve_connection() has a different return type in 0.1.1 that doesn't implement graceful_shutdown().

Upgrading the dependency in poem/Cargo.toml (and probably poem-grpc/Cargo.toml) to 0.1.3 should fix it.

@thornleywalker thornleywalker added the bug Something isn't working label Apr 10, 2024
sunli829 added a commit that referenced this issue May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant