diff build.rs @ 105:13b4d2a19674

Support Rust v1.75.0. This is the version included in Ubuntu 24.04 LTS and Debian Trixie, so it's old enough to have wide penetration without being too old to get new features (Debian Stable, I love you but v1.63 is just not going to work out).
author Paul Fisher <paul@pfish.zone>
date Thu, 26 Jun 2025 00:48:51 -0400
parents 3f11b8d30f63
children e97534be35e3
line wrap: on
line diff
--- a/build.rs	Wed Jun 25 16:56:56 2025 -0400
+++ b/build.rs	Thu Jun 26 00:48:51 2025 -0400
@@ -4,8 +4,8 @@
 
 fn main() {
     if cfg!(feature = "link") {
-        println!("cargo::rustc-link-lib=pam");
-        println!("cargo::rustc-check-cfg=cfg(pam_impl, values(\"linux-pam\",\"openpam\"))");
+        println!("cargo:rustc-link-lib=pam");
+        println!("cargo:rustc-check-cfg=cfg(pam_impl, values(\"linux-pam\",\"openpam\"))");
         let common_builder = bindgen::Builder::default()
             .merge_extern_blocks(true)
             .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
@@ -64,7 +64,7 @@
                 panic!("unrecognized PAM implementation")
             }
         };
-        println!("cargo::rustc-cfg=pam_impl={pam_impl:?}");
+        println!("cargo:rustc-cfg=pam_impl={pam_impl:?}");
         let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
         bindings
             .write_to_file(out_path.join("bindings.rs"))