Skip to main content

edgefirst_gbm_sys/
lib.rs

1#![allow(non_camel_case_types, non_upper_case_globals)]
2// Allowed this because some bindgen tests looks like
3// it tries to dereference null pointers but actually
4// it is not so.
5#![cfg_attr(test, allow(deref_nullptr))]
6
7#[cfg(all(feature = "use_bindgen", not(feature = "dynamic")))]
8include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
9
10#[cfg(all(not(feature = "use_bindgen"), not(feature = "dynamic")))]
11include!("bindings.rs");
12
13#[cfg(all(feature = "use_bindgen", feature = "dynamic"))]
14include!(concat!(env!("OUT_DIR"), "/bindings-dynamic.rs"));
15
16#[cfg(all(not(feature = "use_bindgen"), feature = "dynamic"))]
17include!("bindings-dynamic.rs");
18
19#[cfg(not(feature = "dynamic"))]
20#[link(name = "gbm")]
21extern "C" {}