git-lfs-pointer
Parse and encode Git LFS pointer files.
A pointer is a small UTF-8 text file that stands in for a large file in a git repo. It carries the file's SHA-256 OID, its size, and an optional list of extension records. This crate is a self-contained parser/encoder for that format — no I/O, no network, no git.
use ;
let oid: Oid = "4d7a214614ab2935c943f9e0ff69d22eadbb8f32b1258daaa5e2ca24d17e2393"
.parse
.unwrap;
let pointer = new;
let encoded = pointer.encode;
let parsed = parse.unwrap;
assert_eq!;
assert_eq!;
assert!;
Part of the git-lfs Rust workspace. Experimental — not yet ready for production. License: MIT.