comparison libpam-sys/src/lib.rs @ 138:999bf07efbcb

Get rid of num_enum dependency in `libpam-sys-helpers`. Build times now fast!
author Paul Fisher <paul@pfish.zone>
date Thu, 03 Jul 2025 20:55:40 -0400
parents 88627c057709
children 4b3a5095f68c
comparison
equal deleted inserted replaced
137:88627c057709 138:999bf07efbcb
20 20
21 #[doc(inline)] 21 #[doc(inline)]
22 pub use libpam_sys_helpers::constants::*; 22 pub use libpam_sys_helpers::constants::*;
23 #[doc(inline)] 23 #[doc(inline)]
24 pub use libpam_sys_helpers::{pam_impl, pam_impl_name}; 24 pub use libpam_sys_helpers::{pam_impl, pam_impl_name};
25 use num_enum::{IntoPrimitive, TryFromPrimitive};
26 use std::ffi::{c_char, c_int, c_uint, c_void}; 25 use std::ffi::{c_char, c_int, c_uint, c_void};
27 use std::fmt; 26 use std::fmt;
28 use std::marker::{PhantomData, PhantomPinned}; 27 use std::marker::{PhantomData, PhantomPinned};
29 28
30 /// A marker struct to make whatever it's in `!Sync`, `!Send`, and `!Unpin`. 29 /// A marker struct to make whatever it's in `!Sync`, `!Send`, and `!Unpin`.