diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2026-02-07 20:04:34 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-07 17:41:01 -0800 |
| commit | b674d1036a3a82aaccfd5586007006f1f08648ef (patch) | |
| tree | 65d2ef1eadb7b34ca9b83ced4bc0b026cf46ab07 /src/lib.rs | |
| parent | 67e526c33e025918c146c7cb61007cc2ffc46661 (diff) | |
| download | git-b674d1036a3a82aaccfd5586007006f1f08648ef.tar.xz | |
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>
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 9da70d8b57..cf7c962509 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1,2 @@ +pub mod hash; pub mod varint; |
