Almost 14 years ago, I wrote a small utility, named tarsum, to calculate checksums on files inside a tar archive. It was useful for verifying data inside backups. Recently, I decided to rewrite it in Rust. It’s available from https://github.com/guyru/tarsum.
Installation using cargo is straightforward:
$ cargo install --git https://github.com/guyru/tarsum
Surprisingly, when testing on a large tar archive (a recent Linux tarball, 1.3 GB), the performance of both the Python and Rust implementations is very similar.