git/src
brian m. carlson 39e4dcf77d 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>
2026-02-07 17:41:03 -08:00
..
cargo-meson.sh rust: fix linking binaries with cargo 2026-02-07 17:41:02 -08:00
csum_file.rs rust: add a small wrapper around the hashfile code 2026-02-07 17:41:03 -08:00
hash.rs rust: add functionality to hash an object 2026-02-07 17:41:03 -08:00
lib.rs rust: add a small wrapper around the hashfile code 2026-02-07 17:41:03 -08:00
loose.rs rust: add a new binary object map format 2026-02-07 17:41:03 -08:00
meson.build rust: add a small wrapper around the hashfile code 2026-02-07 17:41:03 -08:00
varint.rs rust/varint: add safety comments 2025-10-15 08:10:17 -07:00