view Cargo.toml @ 101:94b51fa4f797

Fix memory soundness issues: - Ensure Questions are pinned in memory when sending them through PAM. - Hold on to the PAM conversation struct after we build it. (Linux-PAM is leninent about this and copies the pam_conv structure.)
author Paul Fisher <paul@pfish.zone>
date Tue, 24 Jun 2025 17:54:33 -0400
parents 8840fa6534f6
children
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.
#
# This will fail if you have extensions enabled that are not compatible
# with your system's PAM.
link = []
# Enable this to get access to Linux-PAM extensions.
linux-pam-extensions = []
# Enable this to get access to OpenPAM extensions.
openpam-extensions = []

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

[dev-dependencies]
regex = "1.11.1"

[build-dependencies]
bindgen = "0.72.0"