From: valued mammal Date: Sat, 28 Sep 2024 00:53:15 +0000 (-0400) Subject: Merge bitcoindevkit/bdk#1603: fix(RUSTSEC-2024-0370): proc-macro-error is unmaintained X-Git-Tag: v1.0.0-beta.5~8 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/static/enum.ParseCompressedPublicKeyError.html?a=commitdiff_plain;h=9e47b6473093820937b81f669084fc06ad5161b2;p=bdk Merge bitcoindevkit/bdk#1603: fix(RUSTSEC-2024-0370): proc-macro-error is unmaintained d802d00a06035bec582eb5aadf0281f26bff6acd fix(RUSTSEC-2024-0370)!: bump `clap` to latest, removing transitive dependency on `proc-macro-error`. (Leonardo Lima) 45be3172a4abaa94ef2ff55784da31832bdd732a refactor(ci)!: update CI to build and test example in specific job (Leonardo Lima) 519728cd596c3bda60c6e70cbc12b611017e2d7f chore(examples)!: update all examples to have `example_` prefix (Leonardo Lima) 9b7b19586e1f74613f71b6c2403a7df419e13b65 chore: use path as `name` for cargo test targets (Leonardo Lima) 6e8f19607aff55b1949fc7e9f943a333b4fcfb8a fix(bdk_electrum): build with `--no-default-features` (Leonardo Lima) 33942ece8f2f1f0b3d85a201d659cde72a560646 fix(bdk_esplora): build with `--no-default-features` (Leonardo Lima) Pull request description: A candidate for fixing #1593. It builds on top of #1615 ### Description In https://github.com/bitcoindevkit/bdk/issues/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 ### Changelog notice - 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 #### 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 d802d00a06035bec582eb5aadf0281f26bff6acd Tree-SHA512: 274ddcdf05175fa5bc9c78e81de9ce768b800942a2dd420abc415618948aa84b79f6542d8af0c9ba57adaca48ce91fb854546ece069bd4751598cca4ed8f7560 --- 9e47b6473093820937b81f669084fc06ad5161b2