From: 志宇 Date: Sat, 20 Apr 2024 08:00:51 +0000 (+0800) Subject: Merge bitcoindevkit/bdk#1408: Fix: enable blocking-https-rustls feature on esplora... X-Git-Tag: v1.0.0-alpha.10~5 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.VarInt.html?a=commitdiff_plain;h=9800f8d88e83b4aee13179f82420412774b7c945;p=bdk Merge bitcoindevkit/bdk#1408: Fix: enable blocking-https-rustls feature on esplora client d3a14d411d2a1a37f07e42c28eae3a1836aec14d fix: enable blocking-https-rustls feature on esplora client (thunderbiscuit) Pull request description: The [`blocking` feature on the rust-esplora-client library](https://github.com/bitcoindevkit/rust-esplora-client/blame/master/Cargo.toml#L35) changed from ureq to minreq, which does not come with https enabled by default, breaking previously working code that simply enabled the `blocking` feature on the `bdk_esplora` crate. This change will enable what is currently the "default https" [flag for the minreq library](https://docs.rs/minreq/latest/minreq/#https-or-https-rustls) when using the `blocking` feature on bdk_esplora, reverting that breaking change. ### Notes to the reviewers Another way we could do this (let me know if this is preferable) is to add a new feature called `blocking-https-rustls`: ```rust blocking = ["esplora-client/blocking"] blocking-https-rustls = ["esplora-client/blocking-https-rustls"] ``` ### Changelog notice ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [x] I've added tests for the new feature * [x] I've added docs for the new feature #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: storopoli: ACK d3a14d411d2a1a37f07e42c28eae3a1836aec14d evanlinjin: ACK d3a14d411d2a1a37f07e42c28eae3a1836aec14d Tree-SHA512: d25495186ceba2fcd04bc9ff0aebfb32ac5db6885ef8e4df1e304c5ee5264f6161821e06d29367d2837afcc64a53f1553e7c0bb065e6a2e46dc08b8e04c2ad8e --- 9800f8d88e83b4aee13179f82420412774b7c945