From eef93b932844110cf19a4b2741b528623b77998e Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 1 Sep 2025 17:47:08 -0400 Subject: Add option to build rust api without linking to core --- rust/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/build.rs') diff --git a/rust/build.rs b/rust/build.rs index c98bf81b..1e2fede0 100644 --- a/rust/build.rs +++ b/rust/build.rs @@ -1,8 +1,8 @@ use std::path::PathBuf; fn main() { - let link_path = - std::env::var_os("DEP_BINARYNINJACORE_PATH").expect("DEP_BINARYNINJACORE_PATH specified"); + let link_path = std::env::var_os("DEP_BINARYNINJACORE_PATH") + .expect("DEP_BINARYNINJACORE_PATH not specified"); println!("cargo::rustc-link-lib=dylib=binaryninjacore"); println!("cargo::rustc-link-search={}", link_path.to_str().unwrap()); @@ -15,7 +15,7 @@ fn main() { ); } - let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR specified"); + let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR not specified"); let out_dir_path = PathBuf::from(out_dir); // Copy all binaries to OUT_DIR for unit tests. -- cgit v1.3.1