comparison src/libpam/memory.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 ebb71a412b58
children
comparison
equal deleted inserted replaced
147:4d7333337569 148:4b3a5095f68c
1 //! Things for dealing with memory. 1 //! Things for dealing with memory.
2 2
3 use libpam_sys_helpers::memory::{Buffer, OwnedBinaryPayload}; 3 use libpam_sys_helpers::{Buffer, OwnedBinaryPayload};
4 use std::ffi::{c_char, CStr, CString, OsStr, OsString}; 4 use std::ffi::{c_char, CStr, CString, OsStr, OsString};
5 use std::marker::{PhantomData, PhantomPinned}; 5 use std::marker::{PhantomData, PhantomPinned};
6 use std::mem::ManuallyDrop; 6 use std::mem::ManuallyDrop;
7 use std::ops::{Deref, DerefMut}; 7 use std::ops::{Deref, DerefMut};
8 use std::os::unix::ffi::{OsStrExt, OsStringExt}; 8 use std::os::unix::ffi::{OsStrExt, OsStringExt};