summaryrefslogtreecommitdiff
path: root/rust/build.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-09-01 17:47:08 -0400
committerJosh Ferrell <josh@vector35.com>2025-09-01 17:47:08 -0400
commiteef93b932844110cf19a4b2741b528623b77998e (patch)
treeb8c89a56e603dc837d3fe48a33aa619baf2e7d4a /rust/build.rs
parent42fd7435e2713181facfc6d4f54b42bdaa1d2825 (diff)
Add option to build rust api without linking to core
Diffstat (limited to 'rust/build.rs')
-rw-r--r--rust/build.rs6
1 files changed, 3 insertions, 3 deletions
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.