diff libpam-sys/src/lib.rs @ 109:bb465393621f

Minor cleanup and reorg. - Use those nice new macros we just implemented. - Straighten out the macro file. - Move the `BinaryPayload` into `structs.rs`, leaving helpers behind.
author Paul Fisher <paul@pfish.zone>
date Sat, 28 Jun 2025 02:49:35 -0400
parents e97534be35e3
children 2346fd501b7a
line wrap: on
line diff
--- a/libpam-sys/src/lib.rs	Sat Jun 28 00:34:45 2025 -0400
+++ b/libpam-sys/src/lib.rs	Sat Jun 28 02:49:35 2025 -0400
@@ -4,22 +4,15 @@
 //!
 #![doc = concat!("This documentation was built for the **", pam_impl_name!(), "** implementation.")]
 
+#[doc(inline)]
+pub use libpam_sys_impls::cfg_pam_impl;
+use libpam_sys_impls::{pam_impl_enum, pam_impl_name};
 mod constants;
 
-libpam_sys_impls::pam_impl_enum!();
-
-#[doc(inline)]
-pub use libpam_sys_impls::{cfg_pam_impl, pam_impl_name};
+pam_impl_enum!();
 
 pub mod helpers;
+mod structs;
 
 #[doc(inline)]
-pub use constants::*;
-
-#[cfg(test)]
-mod tests {
-    #[test]
-    fn test() {
-        panic!("The pam impl is {:?}", super::LIBPAMSYS_IMPL);
-    }
-}
+pub use crate::{constants::*, structs::*};