rust-bitcoin-unsafe-fast/hashes/src
Tobin C. Harding 766f498b33
Pull serde stuff out of impl_bytelike_traits macro
The `impl_bytelike_traits` macro is public and it is used in the
`hash_newtype` macro, also public.

Currently if a user calls the `hash_newtype` macro in a crate that
depends on `hashes` without the `serde` feature enabled and with no
`serde` dependency everything works. However if the user then adds a
dependency that happens to enable the `serde` feature in `hashes` their
build will blow up because `serde` code will start getting called from
the original crate's call to `hash_newtype`.

Pull the serde stuff out of `hash_newtype` and provide a macro to
implement it `impl_serde_for_newtype`.
2024-11-13 12:28:47 +11:00
..
cmp.rs Remove the SliceIndex implementation from hash types 2024-10-02 10:18:45 +10:00
error.rs hashes: Duplicate impl_from_infallible 2024-11-05 11:19:19 +11:00
hash160.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
hkdf.rs 2024-09-08 automated rustfmt nightly 2024-09-08 01:17:12 +00:00
hmac.rs Put feature gate attribute under test attribute 2024-11-05 11:16:23 +11:00
internal_macros.rs Pull serde stuff out of impl_bytelike_traits macro 2024-11-13 12:28:47 +11:00
lib.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
macros.rs Pull serde stuff out of impl_bytelike_traits macro 2024-11-13 12:28:47 +11:00
ripemd160.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha1.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha256.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha256d.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha256t.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha384.rs Replace `creates` with `constructs` 2024-11-05 12:47:28 +00:00
sha512.rs Merge rust-bitcoin/rust-bitcoin#3584: Standardize constructor type function docs 2024-11-06 16:05:24 +00:00
sha512_256.rs Replace `creates` with `constructs` 2024-11-05 12:47:28 +00:00
siphash24.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00