From daa7384d89c9dfd69c51f66babe0386800624554 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 24 Oct 2022 15:04:13 -0400 Subject: [PATCH] Fix unshield issues finally, bump to 0.1.2 --- Cargo.toml | 8 +++++++- build.rs | 3 +++ src/installer.rs | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 build.rs diff --git a/Cargo.toml b/Cargo.toml index ab1dbf2..d411878 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "physis" -version = "0.1.1" +version = "0.1.2" authors = ["Joshua Goins "] edition = "2021" description = "Interact with XIV game data." @@ -15,6 +15,12 @@ readme = "README.md" name = "physis_benchmark" harness = false +[build-dependencies] +system-deps = "6" + +[package.metadata.system-deps] +libunshield = "1.4" + [dev-dependencies] walkdir = "2" hmac-sha512 = "1" diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..9953eea --- /dev/null +++ b/build.rs @@ -0,0 +1,3 @@ +fn main() { + system_deps::Config::new().probe().unwrap(); +} \ No newline at end of file diff --git a/src/installer.rs b/src/installer.rs index d56231f..104e043 100644 --- a/src/installer.rs +++ b/src/installer.rs @@ -34,7 +34,6 @@ struct Unshield { _private: [u8; 0], } -#[link(name = "unshield")] extern "C" { fn unshield_open(filename: *const c_char) -> *mut Unshield; fn unshield_close(unshield: *mut Unshield);