diff --git a/nftnl-sys/build.rs b/nftnl-sys/build.rs index abd5eab..dfb653a 100644 --- a/nftnl-sys/build.rs +++ b/nftnl-sys/build.rs @@ -26,7 +26,9 @@ fn get_env(var: &'static str) -> Option { } 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; }