File: build.rs

package info (click to toggle)
mercurial 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,080 kB
  • sloc: python: 208,589; ansic: 56,460; tcl: 3,715; sh: 1,839; lisp: 1,483; cpp: 864; makefile: 769; javascript: 649; xml: 36
file content (11 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
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");
}