pub fn build_target_impl() -> Option<PamImpl>Expand description
For build.rs use: Detects the PAM implementation that should be used
for the target of the currently-running build script.
§Configuration
The PAM implementation selected depends upon the value of the
LIBPAMSYS_IMPL environment variable.
- Empty or unset (default): Use the default PAM implementation for the
Cargo target OS (as specified by
CARGO_CFG_TARGET_OS).- Linux: Linux-PAM
- BSD (and Mac): OpenPAM
- Illumos/Solaris: Sun PAM
__installed__: Use the PAM implementation installed on the host system. This opens thelibpamlibrary and looks for specific functions.- The name of a PamImpl member: Use that PAM implementation.
§Panics
If an unknown PAM implementation is provided in LIBPAMSYS_IMPL.