rust-bitcoin-unsafe-fast/units/src
merge-script b392510ec1
Merge rust-bitcoin/rust-bitcoin#2889: Move `serde_round_trip` macro to internals
7fa53440dc Move serde_round_trip macro to internals (Tobin C. Harding)

Pull request description:

  We currently duplicate the serde_round_trip macro in `units` and `bitcoin`, this is unnecessary since it is a private test macro we can just throw it in `internals`.

  While we are at it lets improve the macro by testing a binary encoding also, elect to use the `bincode` crate because we already have it in our dependency graph.

  Add `test-serde` feature to `internals` to feature gate the macro and its usage (preventing the transient dependency on `bincode` and `serde_json`).

ACKs for top commit:
  Kixunil:
    ACK 7fa53440dc
  apoelstra:
    ACK 7fa53440dc

Tree-SHA512: f40c78bf2539940b7836ed413d5fe96ce4e9ce59bad7b3f86d831971320d1c2effcd23d0da5c785d6c372a2c6962bf720080ec4351248fbbdc0f2cfb4ffd602c
2024-07-08 20:50:23 +00:00
..
locktime Move serde_round_trip macro to internals 2024-07-06 14:51:30 +10:00
amount.rs 2024-07-07 automated rustfmt nightly 2024-07-07 01:10:59 +00:00
block.rs units: Add BlockHeight and BlockInterval types 2024-05-30 16:49:30 +10:00
fee_rate.rs Move unit types to units 2024-03-12 11:59:39 +11:00
lib.rs Move serde_round_trip macro to internals 2024-07-06 14:51:30 +10:00
parse.rs Flesh out hex unit parsing API 2024-05-24 14:32:47 +10:00
weight.rs Remove nonsense method 2024-07-04 12:11:46 -05:00