]> Kevux Git Server - rit/commit
rust: add a ObjectID struct
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 7 Feb 2026 20:04:34 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Feb 2026 01:41:01 +0000 (17:41 -0800)
commitb674d1036a3a82aaccfd5586007006f1f08648ef
tree65d2ef1eadb7b34ca9b83ced4bc0b026cf46ab07
parent67e526c33e025918c146c7cb61007cc2ffc46661
rust: add a ObjectID struct

We'd like to be able to write some Rust code that can work with object
IDs.  Add a structure here that's identical to struct object_id in C,
for easy use in sharing across the FFI boundary.  We will use this
structure in several places in hot paths, such as index-pack or
pack-objects when converting between algorithms, so prioritize efficient
interchange over a more idiomatic Rust approach.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
src/hash.rs [new file with mode: 0644]
src/lib.rs
src/meson.build