annotate rust/hg-core/build.rs @ 52760:94e2547e6f3d

rust: move code from utils to utils::strings This moves string-related functions in hg::utils into the recently added hg::utils::strings module.
author Mitchell Kember <mkember@janestreet.com>
date Thu, 16 Jan 2025 13:15:02 -0500
parents 1b7a57a5b47a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52755
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
1 fn main() {
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
2 // The relative paths work locally but won't if published to crates.io.
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
3 println!("cargo::rerun-if-changed=../../mercurial/bdiff.c");
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
4 println!("cargo::rerun-if-changed=../../mercurial/bdiff.h");
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
5 println!("cargo::rerun-if-changed=../../mercurial/compat.h");
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
6 println!("cargo::rerun-if-changed=../../mercurial/bitmanipulation.h");
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
7 cc::Build::new()
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
8 .warnings(true)
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
9 .file("../../mercurial/bdiff.c")
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
10 .compile("bdiff");
1b7a57a5b47a rust: add safe bindings to bdiff.c
Mitchell Kember <mkember@janestreet.com>
parents:
diff changeset
11 }