Skip to content

Commit 9b6ee8d

Browse files
committed
misc: allow doc build
Signed-off-by: Anthony Griffon <[email protected]>
1 parent 1877e62 commit 9b6ee8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ use std::{
66
};
77

88
fn main() -> Result<(), Box<dyn Error>> {
9+
// Skip building from docs.rs.
10+
if std::env::var_os("DOCS_RS").is_some() {
11+
return Ok(());
12+
}
913
// Retrieve a live version of the reports.proto file
1014
let proto_url = "https://usage-reporting.api.apollographql.com/proto/reports.proto";
1115
let response = reqwest::blocking::get(proto_url)?;

0 commit comments

Comments
 (0)