Skip to content

Commit

Permalink
Ignore bindgen feature on docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
pheki committed Oct 29, 2023
1 parent 1e4bfa2 commit a2e0a8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ mod ctypes {

pub use ctypes::*;

#[cfg(not(feature = "bindgen"))]
#[cfg(any(not(feature = "bindgen"), docsrs))]
include!("bindings.rs");

#[cfg(feature = "bindgen")]
#[cfg(all(feature = "bindgen", not(docsrs)))]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

0 comments on commit a2e0a8a

Please sign in to comment.