I built a small web app using the crate warp
. As it runs behind a reverse proxy, is it possible to build the warp crate without support for http2, so that compile time and binary size is reduced?
Asked
Active
Viewed 217 times
1

thejonny
- 488
- 2
- 9
-
https://github.com/seanmonstar/warp/pull/836 – Inline Apr 23 '21 at 11:58
1 Answers
0
warp
does not reexport the http2
feature it enables in hyper
, but maybe you can try this solution: https://stackoverflow.com/a/65468297/8182118
It's not ideal but if you add your sub-dependency as a dependency the feature is going to work.
Basically add our own dependency to hyper
, and only copy over the dependencies you want to keep.

Masklinn
- 34,759
- 3
- 38
- 57