Which crate is this feature request for?
ohttp-relay, payjoin-cli
Please describe the feature you'd like to see added.
While well-known, the reqwest HTTP client unfortunately has a huge dependency tree that makes it not a great fit for security critical applications such as Bitcoin-related programs. To this end, the rust-bitcoin ecosystem had a while back discussed to maintain a shared, saner, HTTP async-compatible client library and by now it is released in the form of bitreq (see also https://github.com/rust-bitcoin/corepc/tree/master/bitreq).
Quite a few projects are now committed to making the switch ASAP (us at LDK are currently switching over everything, bitcoin-payment-instruction has made the switch already, there are open issues/PRs for BDK, etc). Reports from the libraries making the switch speak for themselves, for example, Breez SDK recently reported that dropping reqwest resulted in ~120 fewer transient dependencies and ~5m less binary size.
It would be great if this library could also make the switch soon!
--
Dan's edit tracking prerequisite changes from bitreq
Which crate is this feature request for?
ohttp-relay, payjoin-cli
Please describe the feature you'd like to see added.
While well-known, the
reqwestHTTP client unfortunately has a huge dependency tree that makes it not a great fit for security critical applications such as Bitcoin-related programs. To this end, therust-bitcoinecosystem had a while back discussed to maintain a shared, saner, HTTP async-compatible client library and by now it is released in the form ofbitreq(see also https://github.com/rust-bitcoin/corepc/tree/master/bitreq).Quite a few projects are now committed to making the switch ASAP (us at LDK are currently switching over everything,
bitcoin-payment-instructionhas made the switch already, there are open issues/PRs for BDK, etc). Reports from the libraries making the switch speak for themselves, for example, Breez SDK recently reported that droppingreqwestresulted in ~120 fewer transient dependencies and ~5m less binary size.It would be great if this library could also make the switch soon!
--
Dan's edit tracking prerequisite changes from bitreq