diff --git a/librashader-capi/build.rs b/librashader-capi/build.rs index da4cd7a..8344677 100644 --- a/librashader-capi/build.rs +++ b/librashader-capi/build.rs @@ -3,6 +3,11 @@ use std::fs::File; use std::io::{BufWriter, Write}; pub fn main() { + // Do not update files on docsrs + if env::var("DOCS_RS").is_ok() { + return; + } + let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); let mut buf = BufWriter::new(Vec::new()); cbindgen::generate(crate_dir)