aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMatthew Schauer <matthew.schauer@e10x.net>2022-10-31 09:51:27 -0700
committerMatthew Schauer <matthew.schauer@e10x.net>2022-10-31 09:51:27 -0700
commit0ed81b4f2039b2a6d2b18740af9e0288602d7adf (patch)
tree3eb1354170916c695807950a75daed01d7688b9c /src/lib.rs
parent511e1b910f8c332c0078bef3ae67da7ddbf85a01 (diff)
Add pre-generated bindings for docs.rs builds
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::*;