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 19, 2024
1 parent f4ddf7c commit 09103aa
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 09103aa

Please sign in to comment.