]> Untitled Git - bdk/commit
Merge bitcoindevkit/bdk#2099: Fix no-std compilation master github/master
authormerge-script <oleonardolima@users.noreply.github.com>
Wed, 21 Jan 2026 20:14:26 +0000 (17:14 -0300)
committermerge-script <oleonardolima@users.noreply.github.com>
Wed, 21 Jan 2026 20:14:26 +0000 (17:14 -0300)
commitd0eaadff02535b24b6a35e9d6d2c6df5505b4a0c
tree96804067dd5783d6bae8736b8d9aa95309c2493f
parent226b65c64408628dda91c55b549aef7c524b2f5a
parent546b07e23b6219693976d7a4eeaacdc7c304f04a
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