Mercurial > crates > nonstick
comparison src/constants.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 | efbc235f01d3 |
| children | 33b9622ed6d2 |
comparison
equal
deleted
inserted
replaced
| 137:88627c057709 | 138:999bf07efbcb |
|---|---|
| 1 //! Constants and enum values from the PAM library. | 1 //! Constants and enum values from the PAM library. |
| 2 | |
| 3 // We have a lot of dumb casts that we just gotta do because of differences | |
| 4 // between Linux-PAM and OpenPAM header files. | |
| 5 #![allow(clippy::unnecessary_cast)] | |
| 6 | 2 |
| 7 use crate::{linklist, man7, manbsd, xsso}; | 3 use crate::{linklist, man7, manbsd, xsso}; |
| 8 use bitflags::bitflags; | 4 use bitflags::bitflags; |
| 9 use num_enum::{IntoPrimitive, TryFromPrimitive}; | 5 use num_enum::{IntoPrimitive, TryFromPrimitive}; |
| 10 use std::error::Error; | 6 use std::error::Error; |
