Skip to content

Commit

Permalink
Improve documentation on DOCS_RS workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 23, 2024
1 parent 89cb7c4 commit b71428a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nftnl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ fn get_env(var: &'static str) -> Option<PathBuf> {
}

fn main() {
// Do NOT link when building documentation on docs.rs
// Do NOT link when building documentation on docs.rs. The native libraries are not
// present on their build machines and just makes the compilation fail. Documentation
// generation will work without linking.
if std::env::var("DOCS_RS").is_ok() {
return;
}
Expand Down

0 comments on commit b71428a

Please sign in to comment.