rust-bitcoin-unsafe-fast/bitcoin
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
..
contrib Bump MSRV to 1.48.1 2023-03-23 08:03:06 +11:00
embedded Instruct devs to use nightly for embedded 2023-02-03 08:44:47 +11:00
examples Run the formatter 2023-03-06 10:22:29 +11:00
fuzz Add a newtype for script-pushable slice 2023-02-18 16:35:25 +01:00
src Make `sha256t_hash_newtype!` evocative of the output. 2023-04-02 17:00:52 +02:00
tests Run the formatter 2023-03-06 10:22:29 +11:00
CHANGELOG.md Bump version to v0.30.0 2023-03-22 08:41:21 +11:00
Cargo.toml bitcoin: Fix path to the readme 2023-03-22 12:08:48 +11:00
build.rs Remove rust_v_1_46 2023-03-23 08:27:10 +11:00