rust-bitcoin-unsafe-fast/bitcoin/src
Martin Habovstiak 095b7958dd Make `sha256t_hash_newtype!` evocative of the output.
The Rust API guidelines state that macros should be evocative of the
output, which is a sensible recommendation. We already had this for
`hash_newtype!` macro but didn't for sha256t version.

This changes the macro to have this syntax:

```rust
sha256t_hash_newtype! {
    // Order of these structs is fixed.
    /// Optional documentation details here. Summary is auto-generated.
    /*pub*/ struct Tag = raw(MIDSTATE_BYTES, LEN);

    /// Documentation here
    #[hash_newtype(forward)] // optional, default is backward
    /*pub*/ struct HashType(/* attributes allowed here */ _);
}
```

Closes #1427
2023-04-02 17:00:52 +02:00
..
blockdata Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
consensus Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
crypto Make `sha256t_hash_newtype!` evocative of the output. 2023-04-02 17:00:52 +02:00
merkle_tree Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
network Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
psbt Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
util util: Run the formatter 2023-03-21 08:33:24 +11:00
address.rs Merge rust-bitcoin/rust-bitcoin#1763: Use doc_auto_cfg 2023-03-30 16:56:49 +00:00
amount.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
base58.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
bip32.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
bip152.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
bip158.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
error.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
hash_types.rs Use shorter import statements 2023-03-22 14:09:58 +11:00
internal_macros.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
lib.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
parse.rs Improve string parsing 2023-02-10 12:28:25 +11:00
policy.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00
pow.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
serde_utils.rs Use shorter import statements 2023-03-22 14:09:58 +11:00
sign_message.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
string.rs Use doc_auto_cfg 2023-03-29 14:50:33 +11:00
taproot.rs Make `sha256t_hash_newtype!` evocative of the output. 2023-04-02 17:00:52 +02:00
test_macros.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00