diff rust/hg-core/src/lib.rs @ 52755:1b7a57a5b47a

rust: add safe bindings to bdiff.c I wrote C FFI bindings manually rather than using a bindgen build step because there are only 2 structs and 3 functions and they're not going to change. Note that the relative path in build.rs means that cargo publish will no longer work. If in the future we want to publish to crates.io, we would probably need to add a Makefile step that copies bdiff sources into the hg-core crate.
author Mitchell Kember <mkember@janestreet.com>
date Wed, 18 Dec 2024 10:35:01 -0500
parents 1866119cbad7
children bbf1c52252ae
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Fri Feb 07 13:48:50 2025 +0100
+++ b/rust/hg-core/src/lib.rs	Wed Dec 18 10:35:01 2024 -0500
@@ -5,6 +5,7 @@
 // GNU General Public License version 2 or any later version.
 
 mod ancestors;
+mod bdiff;
 pub mod dagops;
 pub mod errors;
 pub mod narrow;