]> git.ipfire.org Git - thirdparty/git.git/commit
rust: add a ObjectID struct
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 17 Nov 2025 22:16:10 +0000 (22:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Nov 2025 22:24:14 +0000 (14:24 -0800)
commit0404613aa08457f89cae5c26932e4e32661b32f7
tree2807582d58a948afada22ca514f3108e1dbc3ff5
parentf97c49398b24a544a88e0ed5f230fd4714bb8d1c
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