From 92022295305dfb6b61369f5a6786fae0492f54cc Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 20 May 2018 11:18:54 +0200 Subject: Use included header for bindgen Instead of relying on the libnitrokey headers installed on the system (via wrapper.h), use the included NK_C_API.h directly. --- build.rs | 2 +- wrapper.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 wrapper.h diff --git a/build.rs b/build.rs index 7b3325c..470cb96 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,7 @@ fn main() { println!("cargo:rustc-link-lib=nitrokey"); let bindings = bindgen::Builder::default() - .header("wrapper.h") + .header("libnitrokey-3.3/NK_C_API.h") .generate() .expect("Unable to generate bindings"); let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); diff --git a/wrapper.h b/wrapper.h deleted file mode 100644 index 3c8d7cf..0000000 --- a/wrapper.h +++ /dev/null @@ -1,2 +0,0 @@ -#include -#include -- cgit v1.2.3