Skip to content

Commit

Permalink
chore: support same env build bypass as veilid-core
Browse files Browse the repository at this point in the history
  • Loading branch information
cmars committed Feb 25, 2024
1 parent 142a90e commit 2482fa5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distrans-peer/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
fn main() {
if std::env::var("DOCS_RS").is_ok()
|| std::env::var("CARGO_CFG_DOC").is_ok()
|| std::env::var("BUILD_DOCS").is_ok()
{
return;
}

// Compile Capn'Proto
::capnpc::CompilerCommand::new()
.output_path("src/")
Expand Down

0 comments on commit 2482fa5

Please sign in to comment.