Mercurial > crates > nonstick
comparison 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 |
comparison
equal
deleted
inserted
replaced
108:e97534be35e3 | 109:bb465393621f |
---|---|
2 //! | 2 //! |
3 //! ## PAM implementation | 3 //! ## PAM implementation |
4 //! | 4 //! |
5 #![doc = concat!("This documentation was built for the **", pam_impl_name!(), "** implementation.")] | 5 #![doc = concat!("This documentation was built for the **", pam_impl_name!(), "** implementation.")] |
6 | 6 |
7 #[doc(inline)] | |
8 pub use libpam_sys_impls::cfg_pam_impl; | |
9 use libpam_sys_impls::{pam_impl_enum, pam_impl_name}; | |
7 mod constants; | 10 mod constants; |
8 | 11 |
9 libpam_sys_impls::pam_impl_enum!(); | 12 pam_impl_enum!(); |
13 | |
14 pub mod helpers; | |
15 mod structs; | |
10 | 16 |
11 #[doc(inline)] | 17 #[doc(inline)] |
12 pub use libpam_sys_impls::{cfg_pam_impl, pam_impl_name}; | 18 pub use crate::{constants::*, structs::*}; |
13 | |
14 pub mod helpers; | |
15 | |
16 #[doc(inline)] | |
17 pub use constants::*; | |
18 | |
19 #[cfg(test)] | |
20 mod tests { | |
21 #[test] | |
22 fn test() { | |
23 panic!("The pam impl is {:?}", super::LIBPAMSYS_IMPL); | |
24 } | |
25 } |