rust-bitcoin-unsafe-fast/primitives/src
merge-script d32422cdb7
Merge rust-bitcoin/rust-bitcoin#3611: Hashes: Make `hex` dependency optional
ec06028f63 hashes: Make hex dependency optional (Tobin C. Harding)
9dce0b4b8c Remove hex string trait bounds from GeneralHash (Tobin C. Harding)
766f498b33 Pull serde stuff out of impl_bytelike_traits macro (Tobin C. Harding)

Pull request description:

  This is done in 3 parts:

  1. Pull the `serde` stuff out of `impl_bytelike_traits` to fix the bug described here: https://github.com/rust-bitcoin/rust-bitcoin/issues/2654#issuecomment-2470716693
  2. Prepare the `hashes` trait by removing string/hex trait bounds from `GeneralHash` and also pull the hex/string stuff out of `impl_bytelike_traits`
  3. Make hex optional, including adding custom debug logic when `hex` feature is not enabled

  Patch 3 is tested in `hashes/embedded`, by the new `debug` unit test, and there is a `Midstate` unit test as well that covers the `Debug` impl.

  Close: #2654 - BOOM!

ACKs for top commit:
  apoelstra:
    ACK ec06028f63ba591a14c3a15cdfd410bb5ff1c09b; successfully ran local tests; nice!

Tree-SHA512: 85eb10d36a4581af6cd700f7ff876585bcc114c60e9864906e65659f3b3ee550fe6d9f40ca4230d870a9e23f0720723e11443ec329f16e40259a259b9be57466
2024-11-15 18:31:42 +00:00
..
locktime Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
script Replace `creates` with `constructs` 2024-11-05 12:47:28 +00:00
block.rs Merge rust-bitcoin/rust-bitcoin#3611: Hashes: Make `hex` dependency optional 2024-11-15 18:31:42 +00:00
lib.rs Make primitives re-exports uniform 2024-11-15 10:58:46 +11:00
merkle_tree.rs Remove hex string trait bounds from GeneralHash 2024-11-13 14:01:13 +11:00
opcodes.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
pow.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
sequence.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00
taproot.rs Remove hex string trait bounds from GeneralHash 2024-11-13 14:01:13 +11:00
transaction.rs Merge rust-bitcoin/rust-bitcoin#3611: Hashes: Make `hex` dependency optional 2024-11-15 18:31:42 +00:00
witness.rs Fix bug in witness stack getters 2024-11-13 10:55:51 +11:00