#checksum #validation #hash #macro #sha-1

macro checksum_dir

generate checksums of directories at compile time

2 releases (1 stable)

1.0.0 Apr 29, 2024
0.1.0 Apr 27, 2024

#282 in Procedural macros

Download history 370/week @ 2024-04-25 23/week @ 2024-05-02

393 downloads per month

MIT/Apache

8KB
68 lines

Generate a checksum of files from a given directory at compile-time. This crate was made for the purpose of validating inter-process communication. Various hashing algorithms are available as backends, accessible via these feature flags. If multiple features are enabled, this is the order of priority.

blake2      
ascon-hash  
belt-hash
fsb         
gost94      
groestl     
jh          
md2         
md4         
md5        
ripemd      
skein       
sm3         
streebog    
tiger       
whirlpool
sha1        
sha1-checked
sha2        
sha3 [default]

256 variants are used when relevant, ie, sha3::Sha3_256.

Dependencies

~1.4–9MB
~59K SLoC