diff --git a/veilid-core/build.rs b/veilid-core/build.rs index 0b6fe3a1..3270ca97 100644 --- a/veilid-core/build.rs +++ b/veilid-core/build.rs @@ -50,7 +50,10 @@ fn get_protoc_version_string() -> String { } fn main() { - if std::env::var("DOCS_RS").is_ok() || std::env::var("BUILD_DOCS").is_ok() { + if std::env::var("DOCS_RS").is_ok() + || std::env::var("CARGO_CFG_DOC").is_ok() + || std::env::var("BUILD_DOCS").is_ok() + { return; }