Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
52754:a7dcb7c1ff5a | 52755:1b7a57a5b47a |
---|---|
3 // | 3 // |
4 // This software may be used and distributed according to the terms of the | 4 // This software may be used and distributed according to the terms of the |
5 // GNU General Public License version 2 or any later version. | 5 // GNU General Public License version 2 or any later version. |
6 | 6 |
7 mod ancestors; | 7 mod ancestors; |
8 mod bdiff; | |
8 pub mod dagops; | 9 pub mod dagops; |
9 pub mod errors; | 10 pub mod errors; |
10 pub mod narrow; | 11 pub mod narrow; |
11 pub mod sparse; | 12 pub mod sparse; |
12 pub use ancestors::{AncestorsIterator, MissingAncestors}; | 13 pub use ancestors::{AncestorsIterator, MissingAncestors}; |