Skip to content

Commit 5e778c9

Browse files
committed
exclude bindgen for doc
1 parent f774a33 commit 5e778c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rustecal-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
use std::{env, path::PathBuf};
22

33
fn main() {
4+
if std::env::var("DOCS_RS").is_ok() || std::env::var("CARGO_DOC").is_ok() {
5+
println!("cargo:warning=Skipping bindgen during documentation");
6+
return;
7+
}
48
// Prepare bindgen builder
59
let mut builder = bindgen::Builder::default()
610
.header("wrapper.h")

0 commit comments

Comments
 (0)