aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a179da8..81a98bc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,10 +2,15 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
+#[cfg(not(feature = "bindgen"))]
mod ffi;
+#[cfg(not(feature = "bindgen"))]
pub use crate::ffi::*;
+#[cfg(feature = "bindgen")]
+include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
+
#[cfg(test)]
mod tests {
use super::*;