Mercurial > crates > nonstick
diff libpam-sys/src/lib.rs @ 118:39760dfc9b3b
Detect PAM library based only on system lib; rename minimal lib to XSso.
Also formats and assorted other cleanup.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 29 Jun 2025 20:13:03 -0400 |
parents | 2346fd501b7a |
children |
line wrap: on
line diff
--- a/libpam-sys/src/lib.rs Sun Jun 29 18:48:14 2025 -0400 +++ b/libpam-sys/src/lib.rs Sun Jun 29 20:13:03 2025 -0400 @@ -7,6 +7,7 @@ use libpam_sys_impls::{__pam_impl_enum__, __pam_impl_name__}; mod constants; +mod functions; pub mod helpers; mod structs; @@ -30,8 +31,8 @@ /// #[cfg_pam_impl(not("Sun"))] /// fn do_something() { /* non-Illumos code */ } /// -/// #[cfg_pam_impl(any("LinuxPam", "MinimalOpenPam"))] -/// fn do_something_else() { /* Linux-PAM or minimal OpenPAM */ } +/// #[cfg_pam_impl(any("LinuxPam", "XSso"))] +/// fn do_something_else() { /* Linux-PAM or X/SSO-spec PAM */ } /// /// #[cfg_pam_impl(not(any("Sun", "OpenPam")))] /// fn do_a_third_thing() { /* Neither Sun nor OpenPAM */ }