From 3525a396f5073d8849e1c12a1af2cde091864cf0 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 22 Oct 2024 19:18:21 -0400 Subject: [PATCH] Use remote binaryninja crate You must manually update the rev when making changes to the ref'd crate. --- Cargo.toml | 5 +++++ sigem/Cargo.toml | 3 +-- warp_binja/Cargo.toml | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d732e08..c706ec1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,11 @@ members = [ "warp_binja" ] +[workspace.dependencies] +#binaryninja = { path = "../../binaryninja/api/rust", features = ["rayon"] } +# NOTE: You must update the revision manually when making changes in the `binaryninja` crate. +binaryninja = { git = "https://github.com/Vector35/binaryninja-api.git", rev = "bca07d7", features = ["rayon"] } + [profile.release] panic = "abort" lto = true diff --git a/sigem/Cargo.toml b/sigem/Cargo.toml index b55c82a..af74447 100644 --- a/sigem/Cargo.toml +++ b/sigem/Cargo.toml @@ -4,8 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -binaryninja = { path = "../../binaryninja/api/rust", features = ["rayon"] } -binaryninjacore-sys = { path = "../../binaryninja/api/rust/binaryninjacore-sys" } +binaryninja = { workspace = true } env_logger = "0.11.5" log = "0.4" signaturebuild = { path = "../signaturebuild" } diff --git a/warp_binja/Cargo.toml b/warp_binja/Cargo.toml index 3b69830..7ebabd9 100644 --- a/warp_binja/Cargo.toml +++ b/warp_binja/Cargo.toml @@ -7,8 +7,7 @@ edition = "2021" crate-type = ["lib", "cdylib"] [dependencies] -binaryninja = { path = "../../binaryninja/api/rust", features = ["rayon"] } -binaryninjacore-sys = { path = "../../binaryninja/api/rust/binaryninjacore-sys" } +binaryninja = { workspace = true } typebuild = { path = "../typebuild" } symbolbuild = { path = "../symbolbuild" } signaturebuild = { path = "../signaturebuild" }