diff Cargo.toml @ 171:e27c5c667a5a

Create full new types for return code and flags, separate end to end. This plumbs the ReturnCode and RawFlags types through the places where we call into or are called from PAM. Also adds Sun documentation to the project.
author Paul Fisher <paul@pfish.zone>
date Fri, 25 Jul 2025 20:52:14 -0400
parents 4b3a5095f68c
children e30775c80b49
line wrap: on
line diff
--- a/Cargo.toml	Wed Jul 16 18:45:20 2025 -0400
+++ b/Cargo.toml	Fri Jul 25 20:52:14 2025 -0400
@@ -21,17 +21,22 @@
 rust-version.workspace = true
 
 [features]
-default = ["link", "basic-ext"]
+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 = ["libpam-sys"]
+link = ["dep:libpam-sys"]
 
+# Extensions to PAM that are shared by Linux-PAM and OpenPAM
+# (i.e., most PAM installations).
 basic-ext = []
+# Extensions to PAM that are supported by Linux-PAM.
 linux-pam-ext = []
+# Extensions to PAM that are supported by OpenPAM.
 openpam-ext = []
+# Extensions to PAM that are supported by Sun's PAM.
 sun-ext = []
 
 # This feature exists only for testing.
@@ -43,7 +48,6 @@
 num_enum = "0.7.3"
 libpam-sys = { optional = true, path = "libpam-sys" }
 libpam-sys-helpers = { path = "libpam-sys/libpam-sys-helpers" }
-libpam-sys-consts = { path = "libpam-sys/libpam-sys-consts" }
 
 [build-dependencies]
 libpam-sys-consts = { path = "libpam-sys/libpam-sys-consts" }