diff --git a/netcdf-src/build.rs b/netcdf-src/build.rs index 2d7950c..27d49a4 100644 --- a/netcdf-src/build.rs +++ b/netcdf-src/build.rs @@ -89,14 +89,14 @@ fn main() { let netcdf = netcdf_config.build(); + // Only forward link options to netcdf-sys, so netcdf-sys can + // optionally choose not to use this build println!("cargo::metadata=lib=netcdf"); let search_path = format!("{}/lib", netcdf.display()); if std::path::Path::new(&search_path).exists() { println!("cargo::metadata=search={search_path}"); - println!("cargo::rustc-link-search={}", search_path); } else { let search_path = format!("{}/lib64", netcdf.display()); println!("cargo::metadata=search={search_path}"); - println!("cargo::rustc-link-search={}", search_path); } } diff --git a/netcdf/Cargo.toml b/netcdf/Cargo.toml index 62b0021..74bf6d2 100644 --- a/netcdf/Cargo.toml +++ b/netcdf/Cargo.toml @@ -14,6 +14,7 @@ readme = "../README.md" categories = ["science", "filesystem"] exclude = ["examples/**", "tests/**"] build = "build.rs" +rust-version = "1.77" [features] default = ["ndarray"]