#3651·hyper

Hyper-util doesn't build for the web

Author: MubelotixCreated Apr 25, 2024Updated Sep 29, 2026
LabelsC-bugK-hyper-util

Building hyper-util with the tokio feature for wasm fails

bash
cargo build --package hyper-util --target wasm32-unknown-unknown --features tokio

This is a shame because the code that makes it fail is probably not used by the majority of users. Would it be possible to create more specific features under the tokio feature? For example, my use case only needs TokioIo which works fine.

I'm willing to do it