Mercurial > crates > nonstick
comparison libpam-sys/libpam-sys-impls/build.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 |
---|---|
35 PamImpl::MinimalOpenPam | 35 PamImpl::MinimalOpenPam |
36 } | 36 } |
37 } | 37 } |
38 Some(other) => match PamImpl::try_from(other) { | 38 Some(other) => match PamImpl::try_from(other) { |
39 Ok(i) => i, | 39 Ok(i) => i, |
40 Err(_) => panic!("unknown PAM implementation {other:?}") | 40 Err(_) => panic!("unknown PAM implementation {other:?}"), |
41 } | 41 }, |
42 }; | 42 }; |
43 println!("cargo:rustc-env=LIBPAMSYS_IMPL={pam_impl:?}"); | 43 println!("cargo:rustc-env=LIBPAMSYS_IMPL={pam_impl:?}"); |
44 } | 44 } |
45 | 45 |
46 #[derive(Debug, EnumString)] | 46 #[derive(Debug, EnumString)] |