diff --git a/rust/Cargo.toml b/rust/Cargo.toml index bb6f848fc..022edc5f5 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -8,7 +8,7 @@ description = "Low-level Rust bindings for the notcurses C library." repository = "https://github.com/dankamongmen/notcurses" homepage = "https://nick-black.com/dankwiki/index.php/Notcurses" links = "notcurses" -build = "build.rs" +build = "build/build.rs" categories = [ "external-ffi-bindings", "command-line-interface", diff --git a/rust/build.rs b/rust/build/build.rs similarity index 93% rename from rust/build.rs rename to rust/build/build.rs index b48dc6309..b37f9f8ab 100644 --- a/rust/build.rs +++ b/rust/build/build.rs @@ -15,7 +15,7 @@ fn main() { println!("cargo:rerun-if-changed=wrapper.h"); cc::Build::new() - .file("stdout.c") + .file("build/stdout.c") .compile("stdout"); // The bindgen::Builder is the main entry point to bindgen, and lets you @@ -24,9 +24,8 @@ fn main() { .use_core() .ctypes_prefix("cty") .clang_arg("-D_XOPEN_SOURCE") - // The input header we would like to generate - // builder for. - .header("wrapper.h") + // The input header we would like to generate builder for. + .header("build/wrapper.h") // generate comments, also from headers and not just doc comments (///) .generate_comments(true) .clang_arg("-fretain-comments-from-system-headers") diff --git a/rust/stdout.c b/rust/build/stdout.c similarity index 100% rename from rust/stdout.c rename to rust/build/stdout.c diff --git a/rust/wrapper.h b/rust/build/wrapper.h similarity index 100% rename from rust/wrapper.h rename to rust/build/wrapper.h