view Cargo.toml @ 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 efc2b56c8928
children 8840fa6534f6
line wrap: on
line source

[package]
name = "nonstick"
description = "PAM bindings for Rust"
version = "0.0.7"
authors = ["Paul Fisher <paul@pfish.zone>", "Anthony Nowell <anowell@gmail.com>" ]
repository = "https://hg.pfish.zone/crates/nonstick/"
readme = "README.md"
keywords = ["pam", "ffi", "linux", "authentication"]
license = "MIT"
edition = "2021"

[features]
default = ["link"]
# Enable this to actually link against your system's PAM library.
link = []
# Enable this to get access to Linux-PAM extensions.
linux-pam-extensions = []
# Enable this to get access to OpenPAM features not available in Linux-PAM.
openpam = []

[dependencies]
bitflags = "2.9.0"
libc = "0.2.97"
num_enum = "0.7.3"
regex = "1.11.1"

[build-dependencies]
bindgen = "0.72.0"