Mercurial > crates > nonstick
comparison libpam-sys/build.rs @ 130:80c07e5ab22f
Transfer over (almost) completely to using libpam-sys.
This reimplements everything in nonstick on top of the new -sys crate.
We don't yet use libpam-sys's helpers for binary message payloads. Soon.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Tue, 01 Jul 2025 06:11:43 -0400 |
| parents | ad77f2af5ff4 |
| children | a632a8874131 |
comparison
equal
deleted
inserted
replaced
| 129:5b2de52dd8b2 | 130:80c07e5ab22f |
|---|---|
| 7 println!("cargo:rustc-link-lib=pam"); | 7 println!("cargo:rustc-link-lib=pam"); |
| 8 let pam_impl_strs: Vec<_> = PamImpl::iter().map(|e| format!("\"{:?}\"", e)).collect(); | 8 let pam_impl_strs: Vec<_> = PamImpl::iter().map(|e| format!("\"{:?}\"", e)).collect(); |
| 9 let pam_impls = pam_impl_strs.join(","); | 9 let pam_impls = pam_impl_strs.join(","); |
| 10 // We use this for ctest. Don't do what we've done; just use cfg_pam_impl. | 10 // We use this for ctest. Don't do what we've done; just use cfg_pam_impl. |
| 11 println!("cargo:rustc-check-cfg=cfg(_private_pam_impl_hack, values({pam_impls}))"); | 11 println!("cargo:rustc-check-cfg=cfg(_private_pam_impl_hack, values({pam_impls}))"); |
| 12 println!("cargo:rustc-cfg=_private_pam_impl_hack=\"{:?}\"", PamImpl::CURRENT); | 12 println!( |
| 13 "cargo:rustc-cfg=_private_pam_impl_hack=\"{:?}\"", | |
| 14 PamImpl::CURRENT | |
| 15 ); | |
| 13 } | 16 } |
