Upgrade turbopack-dev-server from hyper 0.14 to hyper 1.x#90946
Upgrade turbopack-dev-server from hyper 0.14 to hyper 1.x#90946lukesandberg wants to merge 1 commit intoupdate-tokio-1.47.3from
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Failing test suitesCommit: e67b725 | About building and testing Next.js
Expand output● instant-mode-toggle › should show loading skeleton during SPA navigation when instant mode is on
Expand output● prefetch={true} with instant route › also disables full prefetch when instant is on a layout, not the page |
Merging this PR will not alter performance
Comparing Footnotes
|
|
感谢反馈!我们看到了你的feature请求。我们会尽快处理。 |

Summary
Upgrade
turbopack-dev-serverfrom hyper 0.14 to hyper 1.x (the only crate in the workspace that directly depends on hyper).Stacked on #90945 (tokio 1.47.3 update).
Changes
Dependency updates:
hyper0.14 → 1.x (withserverandhttp1features)hyper-tungstenite0.9 → 0.19 (hyper 1.x compatible)socket20.4 → 0.5hyper-util0.1 (replaces removedhyper::Server)http-body-util0.1 (replaces removedhyper::Body)Code migration:
lib.rs): Replacedhyper::Server+make_service_fn+AddrIncomingwith a manualtokio::net::TcpListeneraccept loop +hyper_util::server::conn::auto::Builder(the recommended hyper 1.x pattern)http.rs):Request<hyper::Body>→Request<hyper::body::Incoming>, body collected viahttp_body_util::BodyExt::collect()lib.rs,http.rs):hyper::Body→Either<Full<Bytes>, Empty<Bytes>>type aliasupdate/server.rs):WebSocketStream<Upgraded>→WebSocketStream<TokioIo<Upgraded>>lib.rs): Service error type changed fromhyper::Errortoanyhow::Error; connection error check uses downcast foris_incomplete_message()Duplicate dependencies eliminated
This upgrade removes 7 duplicate crate pairs from the dependency tree:
hyper0.14 / 1.7 → just 1.7h20.3 / 0.4 → eliminated (hyper 1.x doesn't pull h2 directly)http-body0.4 / 1.0 → just 1.0socket20.4 / 0.5 → just 0.5tungstenite0.18 / 0.20 → just 0.28base640.13 → eliminatedTest plan
cargo checkfull workspace passes