view rust/hg-core/build.rs @ 52758:df7fb698f7a8

rust-revlog: add methods for delta parent, linkrev, and chunk These will be needed for the implementation of rhg annotate.
author Mitchell Kember <mkember@janestreet.com>
date Fri, 03 Jan 2025 10:22:11 -0500
parents 1b7a57a5b47a
children
line wrap: on
line source

fn main() {
    // The relative paths work locally but won't if published to crates.io.
    println!("cargo::rerun-if-changed=../../mercurial/bdiff.c");
    println!("cargo::rerun-if-changed=../../mercurial/bdiff.h");
    println!("cargo::rerun-if-changed=../../mercurial/compat.h");
    println!("cargo::rerun-if-changed=../../mercurial/bitmanipulation.h");
    cc::Build::new()
        .warnings(true)
        .file("../../mercurial/bdiff.c")
        .compile("bdiff");
}