Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use feature check options in rust 1.77 #143

Merged
merged 4 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small comments
  • Loading branch information
mulimoen committed Jun 19, 2024
commit ea4f4da471a03f094e36333a6ed6b0ba7d64ea9b
4 changes: 2 additions & 2 deletions netcdf-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
1 change: 1 addition & 0 deletions netcdf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ readme = "../README.md"
categories = ["science", "filesystem"]
exclude = ["examples/**", "tests/**"]
build = "build.rs"
rust-version = "1.77"

[features]
default = ["ndarray"]
Expand Down