Mercurial > crates > nonstick
comparison src/constants.rs @ 148:4b3a5095f68c
Move libpam-sys helpers into their own library.
- Renames libpam-sys-helpers to libpam-sys-consts.
- Moves libpam-sys-helpers::helpers into libpam-sys-helpers,
which moves them completely out of libpam-sys's dependency chain.
- Moves the aliases from libpam-sys into libpam-sys::aliases.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Mon, 07 Jul 2025 12:11:43 -0400 |
| parents | 1bc52025156b |
| children | 2f5913131295 |
comparison
equal
deleted
inserted
replaced
| 147:4d7333337569 | 148:4b3a5095f68c |
|---|---|
| 13 /// | 13 /// |
| 14 /// **The values of these constants are deliberately selected _not_ to match | 14 /// **The values of these constants are deliberately selected _not_ to match |
| 15 /// any PAM implementations. Applications should always use the symbolic value | 15 /// any PAM implementations. Applications should always use the symbolic value |
| 16 /// and not a magic number.** | 16 /// and not a magic number.** |
| 17 mod pam_constants { | 17 mod pam_constants { |
| 18 pub use libpam_sys_helpers::constants::*; | 18 pub use libpam_sys_consts::constants::*; |
| 19 | 19 |
| 20 macro_rules! define { | 20 macro_rules! define { |
| 21 ($(#[$attr:meta])* $($name:ident = $value:expr;)+) => { | 21 ($(#[$attr:meta])* $($name:ident = $value:expr;)+) => { |
| 22 define!( | 22 define!( |
| 23 @meta { $(#[$attr])* } | 23 @meta { $(#[$attr])* } |
