From f424891511b79e2ec1fb8e1dcb407228da693316 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 20 May 2018 10:59:41 +0000 Subject: 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. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 0641e13..169dac4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { -- cgit v1.2.1