hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.07k stars 1.55k forks source link

Hyper-util doesn't build for the web #3651

Open Mubelotix opened 2 months ago

Mubelotix commented 2 months ago

Building hyper-util with the tokio feature for wasm fails

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