diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2026-02-07 20:04:45 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-07 17:41:03 -0800 |
| commit | 39e4dcf77dfe65f9342000894c1868075ed12415 (patch) | |
| tree | 6f831d3ee5fcc76c01d39653b2d07e0632066968 /src/lib.rs | |
| parent | 40a1b4fb2bfc6a3af608655e2e55435912f5550a (diff) | |
| download | git-39e4dcf77dfe65f9342000894c1868075ed12415.tar.xz | |
rust: add a small wrapper around the hashfile code
Our new binary object map code avoids needing to be intimately involved
with file handling by simply writing data to an object implement Write.
This makes it very easy to test by writing to a Cursor wrapping a Vec
for tests, and thus decouples it from intimate knowledge about how we
handle files.
However, we will actually want to write our data to an actual file,
since that's the most practical way to persist data. Implement a
wrapper around the hashfile code that implements the Write trait so that
we can write our object map into a file.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 442f9433dc..0c598298b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +pub mod csum_file; pub mod hash; pub mod loose; pub mod varint; |
