From: merge-script Date: Wed, 21 Jan 2026 20:14:26 +0000 (-0300) Subject: Merge bitcoindevkit/bdk#2099: Fix no-std compilation X-Git-Url: http://internal-gitweb-vhost/%22https:/parse/scripts/database/language/bitcoin/static/gitweb.css?a=commitdiff_plain;p=bdk Merge bitcoindevkit/bdk#2099: Fix no-std compilation 546b07e23b6219693976d7a4eeaacdc7c304f04a chore(example_cli,esplora): Fix no-std compilation (志宇) Pull request description: ### Description `serde_json` requires either `std` or `alloc` feature enabled. We just enable `alloc` as we don't need the features that `std` provides. ### Notes to the reviewers `alloc` is just a subset of `std`. `json_serde` has `from_reader()` & `to_writer()` methods if `std` is enabled. We aren't using those methods so just having `alloc` is fine. I'm also not sure why an explicit `alloc` cargo feature flag is needed in `serde_json`. They can just have an internal prelude based on whether the `std` feature is enabled. ### Checklists #### All Submissions: * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) ACKs for top commit: luisschwab: ACK 546b07e23b6219693976d7a4eeaacdc7c304f04a oleonardolima: ACK 546b07e23b6219693976d7a4eeaacdc7c304f04a Tree-SHA512: 05afc4d7ee3c1c7de8f2cd497a6a02f7bc4f1410e83604627c8af2b1a36fb92cd2fbe774a8d63bf2c4cffc8d4ddcc009adfdaeb59cdca3201f128f34639f39c2 --- d0eaadff02535b24b6a35e9d6d2c6df5505b4a0c