rusty-pwgen 0.1.0

Generate pronounceable or random passwords from the OS CSPRNG — a Rust port of Theodore Ts'o's `pwgen` with strict-compat mode, deterministic `-H` reproducible mode (SHA256 + ChaCha20), and a typed library API.
Documentation
//! Library-level error type for `rusty_pwgen`.

#[non_exhaustive]
#[derive(thiserror::Error, Debug)]
pub enum Error {
    /// A Default-mode-only setting was passed to Strict mode (or vice versa).
    #[error("compatibility violation: {0}")]
    CompatibilityViolation(&'static str),

    /// The builder was configured into an impossible state.
    #[error("invalid builder configuration: {0}")]
    InvalidBuilderConfiguration(&'static str),

    /// `-H` seed source could not be read (file not found, permission, etc.).
    #[error("seed file not found or unreadable: {0}")]
    SeedSourceUnavailable(String),

    /// An underlying IO error.
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
}