diff options
| author | Robin Krahl <robin.krahl@ireas.org> | 2018-05-20 10:59:41 +0000 |
|---|---|---|
| committer | Robin Krahl <robin.krahl@ireas.org> | 2018-05-20 13:04:43 +0200 |
| commit | f424891511b79e2ec1fb8e1dcb407228da693316 (patch) | |
| tree | 1d209d4904ece8b5add596c683a775995d436892 /src/lib.rs | |
| parent | 85ce1e4d5090caec42293d4b1746bc815095c8a2 (diff) | |
| download | nitrokey-sys-rs-f424891511b79e2ec1fb8e1dcb407228da693316.tar.gz nitrokey-sys-rs-f424891511b79e2ec1fb8e1dcb407228da693316.tar.bz2 | |
Replace generated with static code
Use bindgen to generate the bindings statically instead of during build.
Code generation is not necessary as NK_C_API.h does not contain any
system-dependent definitions. Removing bindgen as a build dependency
also drastically speeds up compilation.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,7 +2,9 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] -include!(concat!(env!("OUT_DIR"), "/bindings.rs")); +mod ffi; + +pub use ffi::*; #[cfg(test)] mod tests { |
