diff --git a/src/build.rs b/src/build.rs index cf100f6..aa0a683 100644 --- a/src/build.rs +++ b/src/build.rs @@ -109,6 +109,7 @@ impl BindgenConfig { } } +#[cfg(not(docsrs))] fn main() { if cfg!(docsrs) { println!("Skipping regeneration of bindings for docs.rs.");