Mercurial > crates > nonstick
view libpam-sys/src/lib.rs @ 108:e97534be35e3
Make some proc macros for doing cfg-like stuff for PAM impls.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 28 Jun 2025 00:34:45 -0400 |
parents | 49d9e2b5c189 |
children | bb465393621f |
line wrap: on
line source
#![doc = include_str!("../README.md")] //! //! ## PAM implementation //! #![doc = concat!("This documentation was built for the **", pam_impl_name!(), "** implementation.")] mod constants; libpam_sys_impls::pam_impl_enum!(); #[doc(inline)] pub use libpam_sys_impls::{cfg_pam_impl, pam_impl_name}; pub mod helpers; #[doc(inline)] pub use constants::*; #[cfg(test)] mod tests { #[test] fn test() { panic!("The pam impl is {:?}", super::LIBPAMSYS_IMPL); } }