rust-bitcoin-unsafe-fast/units/src
merge-script 95be55177e
Merge rust-bitcoin/rust-bitcoin#3421: Const locktime constructors
de319670ae feat: Create relative lock times at compile time (Christian Lewe)
53e1fb6b0c feat: Create absolute lock time at compile time (Christian Lewe)

Pull request description:

  I noticed that I cannot create lock times as compile-time constants. This PR tries to remedy this issue by marking lock time constructors as `const`.

  Because the `internals` crate depends on the `units` crate in a way that I don't fully understand yet, this PR updates the `units` crate only.

  If `from_consensus` is being kept non-`const` by design, to keep the API flexible to future changes, then please close this PR. In this case, I overlooked existing discussions.

ACKs for top commit:
  apoelstra:
    ACK de319670ae successfully ran local tests; good start; should backport
  tcharding:
    ACK de319670ae

Tree-SHA512: 69f9147707bcf8f91f755dd6d1be5ed08945e775ee46918e33d77a9d07ce474047a80ed1226134a3914ead51d1ddbbc657552ca934dc3c079b92ad3d50b13152
2024-09-30 16:29:18 +00:00
..
locktime feat: Create relative lock times at compile time 2024-09-28 18:29:15 +02:00
amount.rs Merge rust-bitcoin/rust-bitcoin#3367: Comment from_str methods 2024-09-18 18:26:38 +00:00
block.rs Add missing links 2024-07-08 08:53:13 +01:00
fee_rate.rs 2024-09-29 automated rustfmt nightly 2024-09-29 01:21:14 +00:00
lib.rs Remove or fix unused variables and methods in docs 2024-09-18 16:37:47 +01:00
parse.rs Fix rustdoc grammar 2024-07-08 08:52:15 +01:00
weight.rs 2024-09-01 automated rustfmt nightly 2024-09-01 01:22:04 +00:00