Mercurial > crates > nonstick
diff src/lib.rs @ 98:b87100c5eed4
Start on environment variables, and make pointers nicer.
This starts work on the PAM environment handling, and in so doing,
introduces the CHeapBox and CHeapString structs. These are analogous
to Box and CString, but they're located on the C heap rather than
being Rust-managed memory.
This is because environment variables deal with even more pointers
and it turns out we can lose a lot of manual freeing using homemade
smart pointers.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 24 Jun 2025 04:25:25 -0400 |
parents | f3e260f9ddcb |
children | 3f11b8d30f63 |
line wrap: on
line diff
--- a/src/lib.rs Mon Jun 23 19:10:34 2025 -0400 +++ b/src/lib.rs Tue Jun 24 04:25:25 2025 -0400 @@ -31,16 +31,19 @@ pub mod handle; +mod environ; #[cfg(feature = "link")] mod libpam; pub mod logging; #[cfg(feature = "link")] +#[doc(inline)] pub use crate::libpam::{LibPamHandle, OwnedLibPamHandle}; #[doc(inline)] pub use crate::{ constants::{ErrorCode, Flags, Result}, conv::{BinaryData, Conversation, ConversationAdapter}, + environ::EnvironMap, handle::{PamHandleApplication, PamHandleModule, PamShared}, module::PamModule, };