Uh oh!
There was an error while loading. Please reload this page.
Bitreq client builder (rustls + native-tls) - #516
Conversation
Hi @APonce911, little comment on dev process. Its better if you rebase on master instead of merging if you want review. With 65 patches reviewers are not going to know where to look. Many of us review by pulling down the PR and reading each patch in our terminals. Different folk treat things differently but to me if a PR is 'open' it is a request to merge so it should be in a mergable state. We use the process where each commit should be a single logical change. There shouldn't be WIP commits and 'fix something I did three commits ago' commits. The whole set of commits (aka the 'patch set') should be clean and reviewable as stand alone changes. Each described in the commit log. |
ton-anywhere
commented
Feb 24, 2026
@tcharding thanks for the feedback. That's something I'll keep in mind! As I've told you, I'm not used to open source so every bit of insight of how you do things is helpful. The process is a bit different than what I'm used to but I'm more than happy to adapt. About those patches and then small subsequent fixes, I've had a hard time trying to replicate the CI suite locally, it didn't catch some corner cases. I could have reset some commits, but didn't think about it by that time. |
tcharding
commented
Feb 24, 2026
In a perfect world every commit builds and passes CI cleanly. We do not however check each commit in CI. But locally during dev you should really, in my opinion, be trying to make sure that at least [0] I have shell alias' for these |
tcharding
commented
Feb 24, 2026
If you want to get past the ci-doesn't-run-for-first-time-contributors just throw up a quick docs fix PR and I'll merge it. |
ton-anywhere
commented
Feb 24, 2026
@tcharding will definitely do that! However I will be off for a few days and won't be able to proceed with the rebase adjustments and doc pr until next week. Thanks for you time again! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1e36aae to
27eac43Compare
TheBlueMatt
left a comment
There was a problem hiding this comment.
Okay this is starting to look pretty good. Aside from the above and below, we now need to clean up the git history...You can try rebasing, but it might at this point be simpler to just git reset upstream/master and then manually re-commit what you have.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ee83cc2 to
1ad18ebCompareUh oh!
There was an error while loading. Please reload this page.
TheBlueMatt
left a comment
There was a problem hiding this comment.
Awesome! Can you clean up the cfg flags so that they're more condensed? It would make the code a ton more readable.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ton-anywhere
commented
Mar 19, 2026
working on the rebase |
69f9298 to
4840954Comparea9c411d to
b20e4b4Compareb20e4b4 to
7d50fd3Compareton-anywhere
commented
Apr 20, 2026
rebased. @TheBlueMatt whenever you can, it's ready for review again. |
tcharding
commented
Apr 23, 2026
Needs rebase again pls mate. |
ton-anywhere
commented
Apr 23, 2026
@jamillambert we still have gates on the following dependencies: rustls, native-tls and tokio-native-tls. Should we gate them with Bitreq cargo features as well? (https-rustls, https-native-tls and async-https-native-tls) If yes, I can work on that in a new PR before rebasing. WDYT? |
I just checked and |
ton-anywhere
commented
Apr 23, 2026
Guys I've created a PR for the TLS gates that can help us here, standardizing it for both TLS backends. After that i'll proceed with the git rebase. |
tcharding
commented
Jul 23, 2026
Please note development has migrated to https://git.rust-bitcoin.org/rust-bitcoin/corepc. Any further comments or pushes here on github may be ignored or lost. Please consider containing this PR on the forgejo instance. |
Summary
This PR addresses issue #473 by creating a Client Builder able to receive custom root certificates at runtime.
The ClientBuilder requires async-https-rustls or async-https-native-tls features.
Changes
with_root_certificatebuilder method.disable_default_certificatesbuilder method.This PR substitutes the 502