-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(bdk_esplora, bdk_electrum): build and test with --no-default-features
#1615
Merged
ValuedMammal
merged 3 commits into
bitcoindevkit:master
from
oleonardolima:fix/bdk-esplora-and-electrum-no-default-features-build
Sep 28, 2024
Merged
fix(bdk_esplora, bdk_electrum): build and test with --no-default-features
#1615
ValuedMammal
merged 3 commits into
bitcoindevkit:master
from
oleonardolima:fix/bdk-esplora-and-electrum-no-default-features-build
Sep 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 tasks
ValuedMammal
approved these changes
Sep 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 086eb6e
- add `blocking-https` as one of the default features, instead of `blocking-https-rustls`, they are basically the same in `esplora-client`. - add `async` and `blocking as required features for each test, using the `[[test]]` cargo target.
- add `use-rustls` as required features for `test_electrum.rs`, using the `[[test]]` cargo target approach.
oleonardolima
force-pushed
the
fix/bdk-esplora-and-electrum-no-default-features-build
branch
from
September 20, 2024 00:48
086eb6e
to
6e8f196
Compare
ValuedMammal
approved these changes
Sep 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9b7b195
ValuedMammal
added a commit
that referenced
this pull request
Sep 28, 2024
d802d00 fix(RUSTSEC-2024-0370)!: bump `clap` to latest, removing transitive dependency on `proc-macro-error`. (Leonardo Lima) 45be317 refactor(ci)!: update CI to build and test example in specific job (Leonardo Lima) 519728c chore(examples)!: update all examples to have `example_` prefix (Leonardo Lima) 9b7b195 chore: use path as `name` for cargo test targets (Leonardo Lima) 6e8f196 fix(bdk_electrum): build with `--no-default-features` (Leonardo Lima) 33942ec fix(bdk_esplora): build with `--no-default-features` (Leonardo Lima) Pull request description: A candidate for fixing #1593. It builds on top of #1615 <!-- You can erase any parts of this template not applicable to your Pull Request. --> ### Description <!-- Describe the purpose of this PR, what's being adding and/or fixed --> In #1593 it's mentioned that `proc-macro-error` is unmaintained for the past few years, with no fix other than using proc-macro-error2 instead. As on our scenario it's merely a transitive dependency of `clap`, through `clap_derive` feature, which in latest releases doesn't depend on `proc-macro-error` we can just bump it to latest. It's valid to note that by bumping it, both examples that relies on clap are no longer MSRV (1.63) compliant. That said, this PR does: - Standardize the example packages to have `example_` prefix. - Exclude examples from running in main `Build & Test` CI job. - Add new testing step to `Build & Test Example` CI job. - Bumps the `clap` to `4.5.17`. ### Notes to the reviewers <!-- In this section you can include notes directed to the reviewers, like explaining why some parts of the PR were done in a specific way --> ### Changelog notice <!-- Notice the release manager should include in the release tag message changelog --> <!-- See https://keepachangelog.com/en/1.0.0/ for examples --> - Standardize the example packages to have `example_` prefix. - Exclude examples from running in main `Build & Test` CI job. - Add new testing step to `Build & Test Example` CI job. - Bumps the `clap` to `4.5.17`. ### 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: * [ ] I've added tests for the new feature * [ ] 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 * [x] I'm linking the issue being fixed by this PR ACKs for top commit: ValuedMammal: ACK d802d00 Tree-SHA512: 274ddcdf05175fa5bc9c78e81de9ce768b800942a2dd420abc415618948aa84b79f6542d8af0c9ba57adaca48ce91fb854546ece069bd4751598cca4ed8f7560
oleonardolima
deleted the
fix/bdk-esplora-and-electrum-no-default-features-build
branch
September 28, 2024 17:41
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
It was noticed in #1603 that both
bdk_esplora
andbdk_electrum
were not able to build and test successfully when--no-default-features
was passed.It wasn't noticed in CI, because the
example-crates
are in the same workspace as the main crates, therefore even though when passing--no-default-features
, the examples were making theblocking
feature tobdk_esplora
anduse-rustls
tobdk_electrum
available, therefore not failing in the tests.This PR attempts to fix that, and is now used as base for #1603.
Notes to the reviewers
Changelog notice
blocking-https
as default feature tobdk_esplora
, and make `{async|blocking}-https-native available too.bdk_esplora
andbdk_electrum
.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
Bugfixes: