Skip to content

Remove futures-util dependency #507

@jplatte

Description

@jplatte

h2 currently depends on futures-util, which is rather heavy (containing heaps of combinators, plus pulling in most of the other futures-* crates) for only two things: poll_fn and AtomicWaker. poll_fn could trivially be copy-pasted (and is also coming to std so eventually that could be used), but the same thing is not true for AtomicWaker. I am not really familiar with the details of wakers, so don't really know how feasible it is to replace that / whether there's maybe an equivalent in tokio / tokio-utils.

I hope there is some new info in this issue. If somebody knows about a good replacement for futures-util's AtomicWaker, I'd be happy to create a PR removing the futures-util dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions