aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 24a0727..1640a31 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -37,6 +37,7 @@ use num_derive::FromPrimitive;
use num_traits::FromPrimitive;
use thiserror::Error;
+#[cfg(not(feature = "hermetic"))]
mod bindings {
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
@@ -44,6 +45,8 @@ mod bindings {
#![allow(dead_code)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
+#[cfg(feature = "hermetic")]
+mod bindings;
use bindings::*;