Skip to content

Commit

Permalink
Fix doc.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Jan 10, 2025
1 parent 516b70e commit 630b5b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rust/trexio/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ fn find_header_path() -> Option<PathBuf> {
}

// Default for generating the documentation on Doc.rs
Some(PathBuf::from("src/trexio.h"))
if let Ok(dir) = env::current_dir() {
let path = PathBuf::from(dir).join("trexio.h");
Some(path)
} else {
None
}
}


Expand Down
File renamed without changes.

0 comments on commit 630b5b0

Please sign in to comment.