Skip to content

Commit

Permalink
Merge pull request #1775 from kuzudb/docs-rs
Browse files Browse the repository at this point in the history
Skip building kuzu when building docs for docs-rs
  • Loading branch information
benjaminwinger committed Jul 7, 2023
2 parents a9842f3 + 680dfa6 commit 53cf71e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/rust_api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ fn build_bundled_cmake() -> Result<Vec<PathBuf>, Box<dyn std::error::Error>> {
}

fn main() {
if env::var("DOCS_RS").is_ok() {
// Do nothing; we're just building docs and don't need the C++ library
return;
}
let mut build = cxx_build::bridge("src/ffi.rs");
build.file("src/kuzu_rs.cpp");

Expand Down

0 comments on commit 53cf71e

Please sign in to comment.