From ea4f4da471a03f094e36333a6ed6b0ba7d64ea9b Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Sun, 5 May 2024 12:46:38 +0200 Subject: [PATCH] Small comments --- netcdf-src/build.rs | 4 ++-- netcdf/Cargo.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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"]