oshash

Crates.iooshash
lib.rsoshash
version0.2.2
created_at2022-12-03 15:19:20.591409+00
updated_at2025-07-13 13:26:14.641113+00
descriptionAn implementation of https://pypi.org/project/oshash/ in Rust
homepagehttps://github.com/stevenwcarter/oshash-rs
repositoryhttps://github.com/stevenwcarter/oshash-rs
max_upload_size
id729150
size402,234
Steven Carter (stevenwcarter)

documentation

README

oshash

Crates.io Documentation Codecov Dependency status

Contains a hashing method that matches the hashing method described here: https://pypi.org/project/oshash/

This hashing method is particularly useful when you don’t want to read an entire file’s bytes to generate a hash, provided you trust that any changes to the file will cause byte differences in the first and last bytes of the file, or a change to its file size.

CLI Utility

A command line utility is provided to generate hashes for files specified as arguments.

$ oshash test-resources/testdata
40d354daf3acce9c test-resources/testdata
Commit count: 22

cargo fmt