This crate provides a simple Hashable
trait that can be derived easily.
As of now, the derive macro only works on structs.
```rust use sha2_derive::*;
struct User {
username: String,
age: u8,
timestamps: Vec
fn main() { let user = User { username: String::from("Mubelotix"), age: 42, timestamps: vec![1, 2, 3], };
let hash = user.hash();
} ```
```rust struct CustomType { // fields }
impl Hashable for CustomType { fn update_hasher(&self, hasher: &mut impl sha2::Digest) { todo!() } } ```
License: MIT