use-git-oid
Primitive Git object identifier vocabulary for RustUse.
use-git-oid validates object identifier text and models SHA-1 and future-friendly SHA-256 shapes. It does not hash content, read object storage, or resolve objects.
Basic usage
use ;
let oid = new.expect;
let short = new.expect;
assert_eq!;
assert_eq!;
Scope
- Validate hexadecimal identifier text.
- Distinguish full and short object identifier shapes.
- Keep hashing and object lookup out of scope.