aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-05-20 11:18:54 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-05-20 11:18:54 +0200
commit92022295305dfb6b61369f5a6786fae0492f54cc (patch)
tree6539a35a1b04d3ed69274d2f474f2f468a4d4538
parent08d281d57e9d4366891cdb6d68075cfaa538ea1e (diff)
downloadnitrokey-sys-rs-92022295305dfb6b61369f5a6786fae0492f54cc.tar.gz
nitrokey-sys-rs-92022295305dfb6b61369f5a6786fae0492f54cc.tar.bz2
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.
-rw-r--r--build.rs2
-rw-r--r--wrapper.h2
2 files changed, 1 insertions, 3 deletions
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 <stdbool.h>
-#include <libnitrokey/NK_C_API.h>