rust-bitcoin-unsafe-fast/internals/src
merge-script 753961fdb8
Merge rust-bitcoin/rust-bitcoin#3215: Improve const_assert
3c7c8c44b6 Improve const_assert (Tobin C. Harding)

Pull request description:

  Now that we can panic in const context we can improve the `const_assert` macro by adding a message string.

  Original idea by Kix:

    https://github.com/rust-bitcoin/rust-bitcoin/pull/2972#discussion_r1726328228

ACKs for top commit:
  Kixunil:
    ACK 3c7c8c44b6 in the sense that it does what it's supposed to with the only tiny issue being that the `bool` looks weird but not broken in any other way I can think of.
  apoelstra:
    ACK 3c7c8c44b6 successfully ran local tests

Tree-SHA512: 5ff721c0056f87d42c934818da6f780cd945f235291eb4b044752d67405a74f992d7f85853fec129e794ec3fcda1f319cc40daabc6a349d21bbdc977640d2572
2024-08-31 20:00:28 +00:00
..
error Link to std::error::Error 2024-06-14 14:00:58 +10:00
array_vec.rs Add unit test for ArrayVec::extend_from_slice 2024-08-30 09:14:43 +10:00
const_tools.rs Refactor Rust version checking 2024-08-19 15:21:01 +02:00
error.rs Removed //! spare line at end of headers 2024-05-22 12:23:57 +01:00
lib.rs Improve const_assert 2024-08-30 06:33:31 +10:00
macros.rs Improve const_assert 2024-08-30 06:33:31 +10:00
parse.rs Use full path in all macro usage of Result 2024-01-18 19:11:01 +01:00
serde.rs Change `T::from_str(s)` to `s.parse::<T>()` 2024-08-27 17:31:00 +01:00