diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-05-20 11:18:54 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-05-20 11:18:54 +0200 |
commit | 92022295305dfb6b61369f5a6786fae0492f54cc (patch) | |
tree | 6539a35a1b04d3ed69274d2f474f2f468a4d4538 | |
parent | 08d281d57e9d4366891cdb6d68075cfaa538ea1e (diff) | |
download | nitrokey-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.rs | 2 | ||||
-rw-r--r-- | wrapper.h | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -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> |