Skip to main content

limes_common/
lib.rs

1//! Shared building blocks for limes login and screenlock crates.
2//!
3//! This crate owns code that both login-manager and screenlock flows need:
4//! PAM authentication, common configuration, events, frontend launching, and
5//! shared error handling.
6
7pub mod auth;
8pub mod config;
9pub mod error;
10pub mod events;
11pub mod frontend;
12
13pub use auth::{
14    AuthBackend, AuthSession, AuthenticatedLogin, LockAuthBackend, NoopLockBackend, PAM_SERVICE,
15    PamAuth, PamLockAuth,
16};
17pub use config::{Config, FrontendSpec};
18pub use error::{LimesError, Result};
19pub use events::{EventBus, EventSink, StderrEventSink};
20pub use frontend::{FrontendMode, FrontendRunner};