shepmaster / twox-hash

A Rust implementation of the XXHash algorithm.
MIT License
361 stars 41 forks source link

Added optional support for the mem-dbg crate #100

Open LucaCappelletti94 opened 1 month ago

LucaCappelletti94 commented 1 month ago

I have added the optional derives for the mem-dbg crate, guarded behind a feature flag 'mem-dbg'.

This is needed as several libraries I need to run benchmarks on use this crate as part of their struct. Adding this derives makes it simple to compare the memory requirements of different libraries. Cheers!