one more case

This commit is contained in:
Christien Rioux 2023-10-18 07:40:16 -04:00
parent 6f23c4bd0e
commit edd2ec20ba

View File

@ -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;
}