view Cargo.toml @ 109:bb465393621f

Minor cleanup and reorg. - Use those nice new macros we just implemented. - Straighten out the macro file. - Move the `BinaryPayload` into `structs.rs`, leaving helpers behind.
author Paul Fisher <paul@pfish.zone>
date Sat, 28 Jun 2025 02:49:35 -0400
parents e97534be35e3
children 2346fd501b7a
line wrap: on
line source

[workspace]
members = ["libpam-sys", "libpam-sys/libpam-sys-impls", "testharness"]
resolver = "2"

[workspace.package]
version = "0.0.8-alpha0"
authors = ["Paul Fisher <paul@pfish.zone>"]
repository = "https://hg.pfish.zone/crates/nonstick/"
edition = "2021"
rust-version = "1.75.0"

[package]
name = "nonstick"
description = "PAM bindings for Rust"
readme = "README.md"
keywords = ["pam", "ffi", "linux", "authentication"]
license = "MIT"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true

[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 = []

basic-ext = []
illumos-ext = []
linux-pam-ext = []
openpam-ext = []

# This feature exists only for testing.
test-install = []

[dependencies]
bitflags = "2.9.0"
libc = "0.2.97"
memoffset = "0.9.1"
num_enum = "0.7.3"
libpam-sys = { path = "libpam-sys" }

[dev-dependencies]
regex = "1.11.1"

[build-dependencies]
bindgen = "0.72.0"