hyperium / hyperium/hyper

Hyper-util doesn't build for the web

Open
#3,651 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
16.3k
Forks
1.8k
Avg merge
1d 22h
Merged PRs (30d)
14

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided cargo build command and inspect hyper-util's feature definitions and wasm-related build constraints. The work is done when the tokio functionality needed for TokioIo builds for wasm32-unknown-unknown without requiring incompatible code, with coverage for the relevant feature combinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.