Mercurial > crates > nonstick
comparison libpam-sys/libpam-sys-impls/build.rs @ 127:c77846f3a979
GET CTEST WORKING.
This will verify that the functions we're exporting are correct.
It has been a nightmare.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Mon, 30 Jun 2025 22:56:26 -0400 |
| parents | 39760dfc9b3b |
| children |
comparison
equal
deleted
inserted
replaced
| 126:57c812e308bd | 127:c77846f3a979 |
|---|---|
| 3 //! 1. It's the definition site for the [`PamImpl`] enum, which then gets | 3 //! 1. It's the definition site for the [`PamImpl`] enum, which then gets |
| 4 //! output to the `OUT_DIR/pam_impl_enum.rs` file for parsing/inclusion | 4 //! output to the `OUT_DIR/pam_impl_enum.rs` file for parsing/inclusion |
| 5 //! into the `__pam_impl_enum__` macro. | 5 //! into the `__pam_impl_enum__` macro. |
| 6 //! 2. It detects the current PAM implementation and sets an env var for | 6 //! 2. It detects the current PAM implementation and sets an env var for |
| 7 //! the macros in `libpam-sys-impl`. | 7 //! the macros in `libpam-sys-impl`. |
| 8 //! | |
| 9 //! We need to have this detection here for `#[cfg_pam_impl]` to work properly | |
| 10 //! when exported to downstream crates. | |
| 8 | 11 |
| 9 use dlopen::raw::Library; | 12 use dlopen::raw::Library; |
| 10 use proc_macro2::TokenStream; | 13 use proc_macro2::TokenStream; |
| 11 use quote::quote; | 14 use quote::quote; |
| 12 use std::ffi::c_void; | 15 use std::ffi::c_void; |
