Minimize futures crates dependency
tottoto opened this issue · 3 comments
Feature Request
Motivation
Allows users to depend on the minimum dependencies which are actually used.
Proposal
Changes tower-http
to depends on futures-core
and futures-util
when they are actually needed, especially about the latter. This includes porting BoxFuture
to tower-http
's code. This proposal's drawback is increasing the maintenance cost to control the crates condition, and the profit can be affected by the other dependencies.
Alternatives
Keeps depending on futures-util
.
What I tried to discuss the future crates is that futures-* crates family. For examples, regarding compression feature, tower-http
seems not to need to use futures-util
and can use futures-core
directly instead.
Oh, okay! In that case, disregard my comment. I'd be happy to merge a PR that implements that change and similar ones.