#cache #hash #derive #proc-macro #struct

macro const-struct-version-derive

A proc-macro to generate a hash based on the fields of a struct. Useful for intelligently expiring a cache when the stored object changes.

3 releases

Uses new Rust 2024

new 0.1.3 Mar 9, 2025
0.1.2 Mar 9, 2025
0.1.0 Mar 9, 2025

#445 in #struct

Download history 179/week @ 2025-03-03

186 downloads per month
Used in const-struct-version

MIT/Apache

10KB
130 lines

Const-struct-version

CI Crates.io Docs.rs

Dependencies

~215–660KB
~16K SLoC